We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to set all menu items to black

Solved

How to set all menu items to black

CreatorTim
Navigator
471 1 71

Hi, I need help setting the entire header to black (menu items, sub-items, and the currency selector).

 

Right now, it’s black, but when I’m in a specific section—for example, "HOME"—the color changes slightly. Also, the currency selector is always a different color.

 

How can I make everything black and ensure the color doesn’t change when I’m in a specific section?

 

Here’s my store URL: https://1049xn-ya.myshopify.com/

 

Thanks a lot,
Tim

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2401 695 836

This is an accepted solution.

- Here is the solution for you @CreatorTim 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file


3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

 

<style>
.localization-form__select>span, span.localization-form__currency.motion-reduce, .header__menu-item span {
    color: black !important;
}
</style>

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 6 (6)
CreatorTim
Navigator
471 1 71

Hey, I added the code to base.css as usual, but nothing changed. Everything looks the same. I checked it using F12.

 
 

Hasan112
Shopify Partner
152 11 22
span.country {
color: #000 !important;
}
span.localization-form__currency.motion-reduce {
color: #000 !important;
}
#HeaderCountryForm>div:nth-child(5)>div:nth-child(2)>button:nth-child(1)>span:nth-child(1) {
 color: #000 !important;
}

#HeaderMenu-home>span:nth-child(1) {
color: #000 !important;
}

#HeaderMenu-products>a:nth-child(1)>span:nth-child(1) {
color: #000 !important;
}

#HeaderMenu-contact>span:nth-child(1) {
color: #000 !important;
}

#HeaderMenu-free-program>span:nth-child(1) {
color: #000 !important;
}

 

Copy

Paste it on style tag on theme.liquid


find
{% style %}

{% endstyle %}

If you need more help let me know, if it works , hit the like button & Accept as solution Thanks

- If you need assistance with your store, feel free to contact us at zayan.1@yahoo.com or WhatsApp!
- Hire me, if you want to Design, Re-design, Develop a store or make changes to the pre-built store.
- If its helpful, please Mark as Accepted Solution, reply helpful? Click Like. Or Coffee Tip Thank you!

DaisyVo
Shopify Partner
4469 501 598

Hi @CreatorTim ,

You can follow the steps here:

 

Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/ypQ7nly2wv27
Step 3: Copy the code below and paste it there

 

Here is the code for step 3:

header.header * {
    color: black !important;
    opacity: 1 !important;
}

Here is the result:

DaisyVo_0-1735692022114.png

 

Please let me know if it works!

Best,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

BSS-TekLabs
Shopify Partner
2401 695 836

This is an accepted solution.

- Here is the solution for you @CreatorTim 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file


3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

 

<style>
.localization-form__select>span, span.localization-form__currency.motion-reduce, .header__menu-item span {
    color: black !important;
}
</style>

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
CreatorTim
Navigator
471 1 71

Works! Thank you so much.

BSS-TekLabs
Shopify Partner
2401 695 836

Glad to be of help. Have a nice day.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now