Shopify themes, liquid, logos, and UX
Hi,
How would I change the logo within the header when it switches to a sticky header please?
Thanks,
Dan
Solved! Go to the solution
This is an accepted solution.
Hi @danc1206 ,
No theme comes with this functionality by default but you can achieve this with theme coding
> Open header.liquid (In Sections folder)
> Look for the <img tag that links to the logo
> Duplicate it and add a class e.g "show-sticky"
> Now you need to hide the first logo when the header becomes sticky and vice versa.
I might be able to give a code solution if you share your store URL. You can also contact me for professional help.
This is an accepted solution.
Hi @danc1206 ,
No theme comes with this functionality by default but you can achieve this with theme coding
> Open header.liquid (In Sections folder)
> Look for the <img tag that links to the logo
> Duplicate it and add a class e.g "show-sticky"
> Now you need to hide the first logo when the header becomes sticky and vice versa.
I might be able to give a code solution if you share your store URL. You can also contact me for professional help.
Hi,
Thank you for all your help. The store is still in progress but the URL is https://steffansjewellers.myshopify.com and the password is steffans.
Thanks,
Dan
Could you help me with the code I need to insert please?
There doesn't appear to be any img tag in the code of header.liquid
Hello! What was the code for this? I came looking for the same solution.
User | RANK |
---|---|
154 | |
136 | |
77 | |
71 | |
67 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023