Shopify themes, liquid, logos, and UX
HI there, with the little help of Javascript and the community here, I managed to make the header of the homepage transparent first, and then turn white when the user scrolls down.
It works smoothly on Dektop device, however on mobile there is a small glitch, i.e. when the header is still transparent and the use touches the Menu icon, the "header" of the menu remains transparent, but it should turn white - see screen recording attached.
Any idea what to change in the Javascript or css file?
All feedback highly appreciated 🙏
The site is www.bienenblatt.de
Solved! Go to the solution
This is an accepted solution.
Hi @Tom202,
I didn't find the code, did you add it to the correct file?
Or you can add it at header.liquid file:
Hi @Tom202,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
.section-header.menu-open .header {
background-color: #fff !important;
}
Hi @namphan , thanks your feedback. I pasted your code, but unfortuantely it did not work. The menu header remains transparent on mobile 😞
This is an accepted solution.
Hi @Tom202,
I didn't find the code, did you add it to the correct file?
Or you can add it at header.liquid file:
Perfect! Thanks a lot! It worked 🙂
Hi @Tom202,
If you have any further questions, you can contact me.
Happy to help you.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025