Need to add a “SELL” button to my header on mobile.
URL: https://label-source.co.uk
header.liquid code below.
{%- liquid
assign style = section.settings.style
assign transparent_header = false
assign logo_height_range = section.settings.logo_height_range
assign logo_height_range_mobile = section.settings.logo_height_range_mobile
assign header_shadow = section.settings.header_shadow
if template == ‘index’
assign transparent_header = section.settings.transparent_header
endif
-%}
{% schema %}
{
“name”: “Header”,
“class”: “header-section”,
“settings”: [
{
“type”: “image_picker”,
“id”: “logo”,
“label”: “Logo image”,
“info”: “400 x 68 px .png recommended.”
},
{
“type”: “range”,
“id”: “logo_height_range”,
“min”: 20,
“max”: 80,
“step”: 1,
“unit”: “px”,
“label”: “Logo height”,
“default”: 30
},
{
“type”: “range”,
“id”: “logo_height_range_mobile”,
“min”: 20,
“max”: 80,
“step”: 1,
“unit”: “px”,
“label”: “Mobile logo height”,
“default”: 30
},
{
“type”: “select”,
“id”: “style”,
“label”: “Desktop logo position”,
“default”: “style1”,
“options”: [
{ “value”: “style1”, “label”: “Logo left, menu center” },
{ “value”: “style2”, “label”: “Logo left, menu left” },
{ “value”: “style3”, “label”: “Logo center, menu left” }
],
“info”: “Position is always center for mobile.”
},
{
“type”: “select”,
“id”: “header_shadow”,
“label”: “Sticky header shadow”,
“default”: “header–shadow-small”,
“options”: [
{ “value”: “header–shadow-none”, “label”: “None” },
{ “value”: “header–shadow-small”, “label”: “Small” },
{ “value”: “header–shadow-medium”, “label”: “Medium” },
{ “value”: “header–shadow-large”, “label”: “Large” }
]
},
{
“type”: “link_list”,
“id”: “menu”,
“default”: “main-menu”,
“label”: “Menu”,
“info”: “Learn how to set up mega menus.”
},
{
“type”: “header”,
“content”: “Transparent header”
},
{
“type”: “checkbox”,
“id”: “transparent_header”,
“label”: “Enable on homepage”,
“default”: true,
“info”: “Ensure that you have a Slideshow, Video background, Image with text overlay section as the first section on your homepage.”
},
{
“type”: “image_picker”,
“id”: “logo_light”,
“label”: “Logo image”,
“info”: “Displayed when transparent header is enabled. Uses the dimensions set on your main logo.”
},
{
“type”: “header”,
“content”: “Mobile menu”
},
{
“type”: “link_list”,
“id”: “mobile_secondary_menu”,
“label”: “Secondary menu”,
“info”: “Secondary menu is shown under the main menu.”
},
{
“type”: “image_picker”,
“id”: “mobile_promo_image”,
“label”: “Promotion image”,
“info”: “375 x 370 px .jpg recommended.”
},
{
“type”: “text”,
“id”: “mobile_promo_heading”,
“default”: “Promotion heading”,
“label”: “Heading”
},
{
“type”: “text”,
“id”: “mobile_promo_link_label”,
“label”: “Promotion button label”,
“default”: “Shop”,
“info”: “Leave the label blank to hide the text button.”
},
{
“type”: “url”,
“id”: “mobile_promo_link”,
“label”: “Promotion button link”
},
{
“type”: “checkbox”,
“id”: “show_language_switcher”,
“label”: “Enable language switcher”,
“default”: true,
“info”: “To add a language, go to your language settings.”
},
{
“type”: “checkbox”,
“id”: “show_currency_switcher”,
“label”: “Enable currency switcher”,
“default”: true,
“info”: “To add a country/region, go to your payment settings.”
}
],
“blocks”: [
{
“type”: “megamenu”,
“name”: “Mega menu”,
“limit”: 10,
“settings”: [
{
“type”: “select”,
“id”: “position”,
“label”: “Link position in main menu”,
“default”: “1”,
“options”: [
{
“value”: “1”,
“label”: “Item 1”
},
{
“value”: “2”,
“label”: “Item 2”
},
{
“value”: “3”,
“label”: “Item 3”
},
{
“value”: “4”,
“label”: “Item 4”
},
{
“value”: “5”,
“label”: “Item 5”
},
{
“value”: “6”,
“label”: “Item 6”
},
{
“value”: “7”,
“label”: “Item 7”
},
{
“value”: “8”,
“label”: “Item 8”
},
{
“value”: “9”,
“label”: “Item 9”
},
{
“value”: “10”,
“label”: “Item 10”
}
]
},
{
“type”: “header”,
“content”: “Promotion 1”
},
{
“type”: “image_picker”,
“id”: “promo_1_image”,
“label”: “Image”,
“info”: “360 x 420 px .jpg recommended.”
},
{
“type”: “text”,
“id”: “promo_1_heading”,
“default”: “Promotion heading”,
“label”: “Heading”
},
{
“type”: “text”,
“id”: “promo_1_link_label”,
“label”: “Button label”,
“default”: “Shop”,
“info”: “Leave the label blank to hide the text button.”
},
{
“type”: “url”,
“id”: “promo_1_link”,
“label”: “Button link”
},
{
“type”: “header”,
“content”: “Promotion 2”
},
{
“type”: “image_picker”,
“id”: “promo_2_image”,
“label”: “Image”,
“info”: “360 x 420 px .jpg recommended.”
},
{
“type”: “text”,
“id”: “promo_2_heading”,
“default”: “Promotion heading”,
“label”: “Heading”
},
{
“type”: “text”,
“id”: “promo_2_link_label”,
“label”: “Button label”,
“default”: “Shop”,
“info”: “Leave the label blank to hide the text button.”
},
{
“type”: “url”,
“id”: “promo_2_link”,
“label”: “Button link”
}
]
}
]
}
{% endschema %}