I have an invisible header side menu white
but when I scroll down and the header become black for the website also the side menu become black and impossible to see the content.
Is there anyway to fix it please?
I have an invisible header side menu white
but when I scroll down and the header become black for the website also the side menu become black and impossible to see the content.
Is there anyway to fix it please?
Hi @Shani-Swim , can you kindly share your store URL.
Thanks!
Sure- here is the link:
https://036fa1-f4.myshopify.com/
Hi @Shani-Swim
Go to Shopify Admin → Online Store ->Theme → Edit code->base.css
Add this css code in the end of the base.css file.
.scrolled-past-header .header__submenu .header__menu-item {
color: #fff !important;
}
Hi @Shani-Swim ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
{% if template.name == 'index' %}
{% endif %}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you ![]()
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Thank you dear, is solve the problem.
The first solution worked for me but thank you for the fast answer.
it work but on mobile it did not change so we still see black.
Hi Niraj it worked on desktop but not on mobile. How do I apply it also on mobile please?
Hi @Shani-Swim ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
{% if template.name == 'index' %}
{% endif %}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you ![]()
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hi @Shani-Swim , i update code. Pls replace my old code to this code :
{% if template.name == 'index' %}
{% endif %}
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you ![]()
@Shani-Swim , Pls check this above code
on Mobile we have a white background when we are on the top scroll header
on Desktop mode it work fine so I need it also on mobile mode please.
@Shani-Swim , Remove old code change to this new code:
{% if template.name == 'index' %}
{% endif %}
Hope this can help you ![]()
also did not work I still have on mobile the same issue.
Worked like magic! thank you very much.