Shopify themes, liquid, logos, and UX
I have a site with a wholesale side and a consumer side. For the wholesale pages, I use an if statement in the header.liquid file to replace the main menu with a wholesale menu. Is there a way to do something similar to change the background color of the header for just those pages?
Solved! Go to the solution
This is an accepted solution.
As you already doing this you can add a class name to <header> tag and create a class that will have the background color.
<style>
header.wholesaleheader{background:red}
</style>
Hope this will help...
This is an accepted solution.
As you already doing this you can add a class name to <header> tag and create a class that will have the background color.
<style>
header.wholesaleheader{background:red}
</style>
Hope this will help...
But how do I call that class out with the if statement?
plz share the URL and if statement you used to change the menu.
or you can refer to the below video which creates the template when you want a different header.
User | RANK |
---|---|
207 | |
178 | |
63 | |
51 | |
47 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023