Hi,
I have a store with one brand and two collections for girls and boys. We want to create two separate branded ‘worlds’ for boys and girls. I created for both collections separate templates for collection and product page.
Now I am looking for a way to change the logo in the header when visiting one or the other collections.
I found a few lines of code and implemented them into the header.liquid file. This does not work unfortunately.
I hope one of you smarter people could take a look and let me know what I am doing wrong and how I should fix it.
I just make a quick test at the header.liquid. See if it can help?
{% if template contains ‘collection’ %}
{% if collection.title == ‘Internal Parts’ %}
{{ collection.title}}![]()
{% elsif collection.title == ‘External Parts’ %}
{{ collection.title}}![]()
{% else %}
{{ collection.title}}![]()
{% endif %}
{% else %}
![]()
{% endif %}
Can I add you as a user to store to make a change and see?
This is risky to let a stranger be a user of your store. Maybe you base it on my test code and try to edit it yourself.
It hardly has any data but it might be helpful for me and I would be equally grateful to you for this