so basically i want to add another logo to the header and redirect visitors to a second website. lets say this is website A and i want to Direct visitors to website B.
currently on website A there is a logo of website A which it directs you to landing page of website A if you click on it. now i want to add a second logo and when visitors click on it, it directs them to website B. i checked the header.liquid and i saw that there was a limit to number of logos so naturally i changed 1 to 2. after that i added the code for the link and i typed the website B link into it. now there are 2 logos but both direct visitors to website A landing page.
not sure why but either the link code is being ignored or it is being overwritten by another code some where.
here is the section of header.liquid that i have changed.
“blocks”: [
{
“type”: “logo”,
“name”: “Logo”,
“limit”: 2,
“settings”: [
{
“type”: “image_picker”,
“id”: “logo”,
“label”: “Logo”
},
{
“type”: “image_picker”,
“id”: “logo-inverted”,
“label”: “White logo”,
“info”: “Used when on top of an image”
},
{
“type”: “range”,
“id”: “desktop_logo_width”,
“label”: “Desktop logo width”,
“default”: 200,
“min”: 100,
“max”: 400,
“step”: 10,
“unit”: “px”
},
{
“type”: “range”,
“id”: “mobile_logo_width”,
“label”: “Mobile logo width”,
“default”: 140,
“min”: 60,
“max”: 200,
“step”: 10,
“unit”: “px”,
“info”: “Set as a max-width, may appear smaller”
},
{
“type”: “url”,
“id”: “link”,
“label”: “Link”
}
]
can someone help to fix this issue? thanks in advance!
{% if overlay_header %}
{% if section.settings.toolbar_social or section.settings.toolbar_menu != blank %}
{% render ‘toolbar’,
section: section,
overlay_header: overlay_header
%}
{% endif %}
{% endif %}
{% if logo_alignment == 'left' or logo_alignment == 'center' %}
{% if section.settings.main_menu_alignment != 'left-drawer' %}
{% if section.settings.main_menu_alignment == ‘left-center’ or section.settings.main_menu_alignment == ‘left’ or section.settings.main_menu_alignment == ‘center-left’ %}
{{ ‘general.drawers.navigation’ | t }}
{% if settings.search_enable and section.settings.main_menu_alignment != ‘left’ %}
{% if block.settings.logo %}
{% comment %}
.logo–has-inverted is only applied to the default logo if the inverted logo exists. That way it’ll only be hidden on the slider when it has a backup.
{% endcomment %}