Shopify themes, liquid, logos, and UX
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?
Solved! Go to the solution
This is an accepted solution.
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>
header.header.scrolled-past-header .header__menu-item.list-menu__item {
color: #fff !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
@Shani-Swim, Remove old code change to this new code:
{% if template.name == 'index' %}
<style>
.scrolled-past-header ul.menu-drawer__menu.list-menu li a,
.scrolled-past-header .menu-drawer summary.menu-drawer__menu-item,
.scrolled-past-header button.disclosure__button.localization-form__select.localization-selector
{
color: #ffff !important;
}
</style>
{% endif %}
Hope this can help you 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hi @Shani-Swim , can you kindly share your store URL.
Thanks!
This is an accepted solution.
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>
header.header.scrolled-past-header .header__menu-item.list-menu__item {
color: #fff !important;
}
</style>
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.
Hi Niraj it worked on desktop but not on mobile. How do I apply it also on mobile please?
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>
.menu-drawer__inner-container ul.menu-drawer__menu.list-menu li a, .menu-drawer summary.menu-drawer__menu-item, button.disclosure__button.localization-form__select.localization-selector {
color: #fff !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
when scrolled down yes
but when we are up on the invisible mode header no.
Hello sir I need your help , I'm facing a problem in tablet and mobile view , when I click the burger icon a white transaprent backaground aprears instead of the menu , help me please to solve it
here it is my website I used dawn them : https://www.cozmic.me/
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;
}
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.
on mobile now I have it white on white when we scroll up
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 </head> tag:
{% if template.name == 'index' %}
<style>
header.header.scrolled-past-header .header__menu-item {
color: #ffff !important;
}
</style>
{% 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 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
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 </head> tag:
{% if template.name == 'index' %}
<style>
ul.menu-drawer__menu.list-menu li a,
.menu-drawer summary.menu-drawer__menu-item,
button.disclosure__button.localization-form__select.localization-selector
{
color: #ffff !important;
}
</style>
{% 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 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hi @Shani-Swim, i update code. Pls replace my old code to this code :
{% if template.name == 'index' %}
<style>
.scrolled-past-header ul.menu-drawer__menu.list-menu li a,
.scrolled-past-header .menu-drawer summary.menu-drawer__menu-item,
.scrolled-past-header button.disclosure__button.localization-form__select.localization-selector
{
color: #ffff !important;
}
</style>
{% 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 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
@Shani-Swim, Pls check this above code
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
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.
This is an accepted solution.
@Shani-Swim, Remove old code change to this new code:
{% if template.name == 'index' %}
<style>
.scrolled-past-header ul.menu-drawer__menu.list-menu li a,
.scrolled-past-header .menu-drawer summary.menu-drawer__menu-item,
.scrolled-past-header button.disclosure__button.localization-form__select.localization-selector
{
color: #ffff !important;
}
</style>
{% endif %}
Hope this can help you 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
also did not work I still have on mobile the same issue.
Worked like magic! thank you very much.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024