Shopify themes, liquid, logos, and UX
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!
Use this css
a[href="/collections/last-chance"] {
color: red !important;
}
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:
ul.site-nav > li:first-child > a {
color: red !important;
}
Let me know if you need further assistance!
Hi
You can try this snippet.
<style>
li.site-nav__item:first-child a.site-nav__link { color: red; }
li.site-nav__item:first-child a.site-nav__link:hover{ color: red; }
li.site-nav__item:first-child a.site-nav__link .site-nav__title::before { border-bottom: 2px solid red;}
</style>
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.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025