Artez
May 29, 2025, 11:01am
1
Hi’ there is an invert effect on the header in this shopify website
https://bananhot.co.il/
and the header is also transparent until the mouse is on it.
When scrolled down it become white both on web and mobile.
Is there any way to make it ?
https://wmqgez-r2.myshopify.com/
Warm regards.
1 Like
Hi @Artez
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
In theme.liquid, paste the below code before
Paste this before the closing tag in theme.liquid or via custom.js :
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
1 Like
Artez
May 29, 2025, 11:40am
3
Done it, hard refresh, still don’t do the effect dear.
Please add this code to theme.liquid file, after in Sales channels > Online store > Themes > Edit code
{% if template == 'index' %}
{% endif %}
Artez
May 30, 2025, 2:07pm
5
Wow Dan! works amazing.
one thing. The hamburger on mobile is not affected by the invert color, but when scroll down we do see it.
Is it possible to add the effect of invert to white on the hamburger menu on mobile?
It is important when scrolled down it invert back to black .
Hi @Artez
to make humbeger icon to white color, let use this Custom CSS code:
#Details-menu-drawer-container .header__icon svg path {
fill: #fff;
}
Artez
June 1, 2025, 6:22am
7
It make it white but after scrolling we don’t see it.
I want it to be white then turn to black when scrolling down please.
let use this code:
#shopify-section-sections--18541339607221__header.scrolled-past-header #Details-menu-drawer-container .header__icon svg path {
fill: currentColor;
}
Let try to add to the end of file base.css, not using theme settings pls
Artez
June 5, 2025, 5:58am
12
@BiDeal-Discount This don’t work in the current version, even if applied as explained in that topic.
use this
#shopify-section-sections –18541339607221__header:not(.scrolled-past-header) #Details-menu-drawer-container .header__icon svg path {
fill: #fff ;
}
Please use this code
@media (max-width:749px) {
.menu-drawer-container .header__icon span { color: #fff; }
.scrolled-past-header .menu-drawer-container .header__icon span { color: #000; }
}
did you add to file base.css? I see your base.css don’t have that style. It also having wrong syntax