Hello to all the Shopify community :-),
I need help for CSS coding on Lammer Theme 2023 → I would like to change the text color of only one of my main navigation menu to highlight it.
The “SALE” navigation menu should appear In Red rather than grey.
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.
Website - https://mypuras.com/
Thank You!
1 Like
Use this css
a[href="/collections/last-chance"] {
color: red !important;
}
tim_1
April 24, 2025, 9:26am
3
The best way in my opinion is to target by the URL these links point to:
nav [href="/collections/last-chance"],
.drawer__nav [href="/collections/last-chance"] {
color: red;
}
This code you should put into “Custom CSS” setting under “Theme settings” in “Customize”
Hello @WinnieLim ,
Here are the steps to apply the necessary changes in your Shopify store:
In your Shopify Admin, navigate to Online Store > Themes > Actions > Edit Code.
Locate Asset > base.css and paste the following code at the bottom of the file:
ul.site-nav > li:first-child > a {
color: red !important;
}
Let me know if you need further assistance!
sgtlab
April 24, 2025, 9:58am
5
Hi
You can try this snippet.
Here’s how it will look
You can see a live preview and learn how to import this snippet into your store here:
https://shop-booster.sgt-lab.com/snippet/mypurascom?snippetId=1745488507475
Hope this helps!
Thank you, your method works for me and showed me where to insert the code successfully.