Shopify themes, liquid, logos, and UX
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Hello to all the Shopify community :-),
I need help for CSS coding on Pacific Theme -> I would like to change the text color of only one of my main navigation menu to highlight it.
The first "SMALL PRICES" navigation menu should appear in red rather than grey and also in the sidebar menu.
I tried to quibble with the code but nothing to do, the color does not change. I'm having trouble identifying my menu or placing my code incorrectly on my CSS stylesheet.
- Here is a link to my webshop: https://www.bel-arte.be
- Here is also a screenshot of my homepage below :
In advance a big thank you to whoever can help me on this 🙂
Jean-Louis
Solved! Go to the solution
This is an accepted solution.
Hi Jean-Louis!
This should solve it for you swiftly:
#shopify-section-header > div:nth-child(2) > div.main-header-wrapper > header > nav > ul > li.navmenu-item.navmenu-id-small-prices > a {
color: red;
}
#shopify-section-header > div:nth-child(2) > div.main-header-wrapper > div > div.site-mobile-nav.open > nav > ul > li.navmenu-item.navmenu-id-small-prices > a {
color: red;
}
Add it at the bottom of your theme.scss.css file please and let me know!
This is an accepted solution.
Oh sorry I thought you meant the mobile menu!
Here's the one for the sidebar:
body > div.main-content-wrapper > div.sidebar > div > ul > li:nth-child(1) > a {
color: red;
}
Let me know!
This is an accepted solution.
Hi Jean-Louis!
This should solve it for you swiftly:
#shopify-section-header > div:nth-child(2) > div.main-header-wrapper > header > nav > ul > li.navmenu-item.navmenu-id-small-prices > a {
color: red;
}
#shopify-section-header > div:nth-child(2) > div.main-header-wrapper > div > div.site-mobile-nav.open > nav > ul > li.navmenu-item.navmenu-id-small-prices > a {
color: red;
}
Add it at the bottom of your theme.scss.css file please and let me know!
Your code works for the Main Menu thank you !
And for the side bar on the left do you have a solution to change the text color of this menu too ?
Yes I've edited the code a few minutes after posting, add both codes above for desktop and mobile!
And have you a solution to change the color of the same menu in the left side bar too ?
Thank again for your great help !🙂
This is an accepted solution.
Oh sorry I thought you meant the mobile menu!
Here's the one for the sidebar:
body > div.main-content-wrapper > div.sidebar > div > ul > li:nth-child(1) > a {
color: red;
}
Let me know!
It works perfectly too :-). Many thanks to you JHKC for you very quick reply and your great help with your codes.
Have a nice day & take care !
Jean-Louis
Bel'Arte store
Can someone help me do this in debut theme?
Hey JHK Create,
I am using Debut Theme on my store boldshapes.co
I would like to change color of "Outlet" only in my header menu to red color or to #FF3333 if possible
How can i make it?
Hello, I'm looking for the same as Jean-Louis on my Impulse theme.
I would like to add a "private sales" section to my menu in red also.
Is it the same on this theme?
I have to copy the piece of code to integrate it at the end of my theme?
https://www.endro-cosmetiques.com/
Hi @Lucinne
Can you add the menu item so we can provide the code? It's not 100% the same.
Thanks!+
Thanks a lot for your help ! 🙂 I added the "Private Sales" tab to my menu
@Lucinne
Paste the code on top of the theme.scss file.
li.site-nav__item.site-nav__expanded-item:first-child a {
color: #803959 !important;
}
Thank You.
Thank you for your message.
I paste the code at the beginning of my thme in theme.liquid as on my capture but it does not work.
@Lucinne
Not in theme. liquid.
Paste this code on top of the theme.scss file.
Thank You.
I'm sorry maybe it's me, but I can't find it. I searched in layout, assets, templates, sections ...
Do I have to create it somewhere?
User | RANK |
---|---|
127 | |
95 | |
78 | |
54 | |
46 |
Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022Shipping can be one of the most vital parts to set up and manage your business. Understand...
By Ollie Dec 16, 2022