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
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