Need to change logo color on secondary pages

Need to change logo color on secondary pages

Macagahu
Visitor
1 0 0

Hello, 

My website homepage logo color is white due to the image i have in the background. When i go to my other website pages, i am not able to see my logo because my background is white. Is there a way to upload a black logo that only works on specific sections? Screen Shot 2023-10-20 at 15.09.51.pngScreen Shot 2023-10-20 at 15.10.00.png

 

 

Reply 1 (1)

gr_trading
Shopify Partner
1843 145 193

Hi @Macagahu 

 

Use the below liquid code to replace the logo file in header.liquid file.

 

{% if request.page_type == 'index' %}
// Homepage
{% else %}
// other pages
{% endif %}

 

If this is coming at a specific collection please refer to the below video to implement the same.

 

 

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee