All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi there,
I'd like my logo to completely disappear once a scroll begins and have only the menu bar remain, similar to this site: https://www.mudpuppy.com/
I'm using the Sense theme.
I tried using this code which I found in another forum thread, but it didn't do anything:
.site-header--opening .header-layout.header-layout--center {
display: none;
}
Alternatively, I'd love to know how to decrease the size of the logo on scroll if I have it set to "Always, Reduce Logo size" under Theme > Customize > Header > Sticky Header.
Any help is appreciated! Thank you.
You would require a bit of custom coding on that. Can you share your store url here? Let me see what I can do after that.
Hi @puzzlepeople ,
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.liquid
Step 3: Paste the below code at the bottom of the file -> Save
<style>
body:has(.scrolled-past-header) .header__heading-logo-wrapper img{
display:none
}
</style>
Hope my solution works perfectly for you!
Best regards,
Oliver | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Amazing! This works! One addition - is it possible to make the bar with the search bar, cart, & account icons go away as well? I only want the menu to remain.
You can try
<style>
body:has(.scrolled-past-header) .header__heading,
body:has(.scrolled-past-header) .header__search,
body:has(.scrolled-past-header) .header__icons{
display:none
}
</style>
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.