Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have made my header transparent, but it won't stick. I'm trying to make my header stick, my logo the same colour as the other icons, and change the colour of the header as I scroll down the website. Can anyone help please?
You can try this code by following these steps:
Go to Online store => themes => actions => edit code and add this code on file theme.liquid before tag </body>
<style>
header#site-header {
position: fixed;
width: 100%;
}
use {
color: white;
}
.header__icon{
color: white;
}
</style>
Hope this answer helps.
Best regards,
Victor | PageFly
Hello @PageFly-Victor I added that code and my header sticks now thank you, but on my header the logo is still the same colour of my text instead of being the same colour as my icons. And I don't want my header to be transparent when I am scrolling. Would you be able to help me with this please?
@luxurylure , I’m sorry but this is out of my scope. You may try contacting Shopify support or finding another expert regarding this issue.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025