Shopify themes, liquid, logos, and UX
how can i make the background transparent but solid when i start scrolling?
Hello @Andia
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.gradient {
background: transparent !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
there is an overlap now
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
when i scroll i dont want this extra space. is there a way to get rid of it?
It look fine
Hello @Andia
Go to online store ---------> themes --------------> actions ------> edit code-------> base.css --- add at the very end of the file.
@media screen and (min-width: 990px) {
.header {
padding-top: 30px;
}
}
adn the result will be
let me know if this solved your purpose.
Thanks
this didnt seem to work! still overlaps
<style>
sticky-header.header-wrapper {
background: transparent;
position: fixed;
top: 0;
left: 0;
right: 0
}
</style>
<style>
.scrolled-past-header * {
background: #F2F3EE !important;
}
this is the code i used so that the header is transparent and then goes solid when scrolled
Please check the screenshot
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025