My hamburger menu slides out completely black when clicked.

Solved

My hamburger menu slides out completely black when clicked.

Over_Heavens
Tourist
10 0 4

Hi, so basically the navigation links from my website's hamburger menu appear the same color as the slide out background.

A while ago I made it so the website's header would change color from transparent to black upon scrolling down and it seems that the hamburger menu slide out changes color as well when scrolling.

 

It goes from white with black navigation links when at the top of the page, so readable when at the tippy top of the page, but then switches to a black background and black links when scrolling down, making the whole menu unreadable. 

 

hamburger menu all black.webphamburger menu normal.webp

If anyone could help me I would really appreciate it. All I want is to basically change the navigation link's color to white when the menu is black so it's legible, or even simpler yet just make the slide out menu be one constant legible color pattern no matter where the page has been scrolled to.

 

I'm using dawn theme.

Accepted Solution (1)

Moeed
Shopify Partner
7518 2031 2496

This is an accepted solution.

Hey @Over_Heavens 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.scrolled-past-header * {
    color: white !important;
}
</style>

RESULT:

Moeed_0-1730790038873.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
7518 2031 2496

This is an accepted solution.

Hey @Over_Heavens 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.scrolled-past-header * {
    color: white !important;
}
</style>

RESULT:

Moeed_0-1730790038873.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Over_Heavens
Tourist
10 0 4

Thank you so much for your help! 

 

Your code is working perfectly, you really are a life saver!

Moeed
Shopify Partner
7518 2031 2496

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Rahul_dhiman
Shopify Partner
824 155 173

Hello @Over_Heavens 
Go to online store ----> themes ----> actions ----> edit code ----> assets ---->component-menu-drawer.css
add this code at the end of the file and save.

.scrolled-past-header * {
color: white !important;
}

result
62.png

If this was helpful, hit the like button and accept the solution.
Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages

Over_Heavens
Tourist
10 0 4

Thank you so much for helping me! 

 

II really appreciate it!