Hi,
May I suggest to update code these steps:
-
Go to Store Online-> theme → edit code
-
Sections-> Add new section with name ‘icons-menu.liquid’
-
copy code below to the file just has created at step 2
{% schema %}
{
"name": "Icon menu",
"blocks": [
{
"type": "icon",
"name": "Icon",
"settings": [
{
"type": "image_picker",
"id": "icon",
"label": "Icon"
},
{
"type": "range",
"id": "width_icon",
"min": 0,
"max": 100,
"step": 10,
"unit": "%",
"label": "icon width",
"default": 30
},
{
"type": "url",
"id": "url_icon",
"label": "Url",
"info": "Url of sub menu item that you would like to add icon for it( Level 2)"
}
]
}
],
"presets": [
{
"name": "Icon menu",
"blocks": [
{
"type": "icon"
}
]
}
]
}
{% endschema %}
-
Go to customize
-
Add icon menu section to header
-
Add block
