Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
Can anyone please tell me how to change the color of sale in css to red in css?
My shop is www.thegclothing.com
Thanks
Best
Matej
Hello @Jana_Juriková,
1. Go to Online Store->Theme->Edit code
2. Asset->theme.scss.liquid->paste bellow code in bottom of file
#SiteNav li:nth-child(5) a { color: red; }
Thanks you, works perfect!
Hey there, @Jana_Juriková
Bo here from Shopify Support!
As I do not know which theme this is I would not be the best equipped to advise you on editing the code, however, there is a hack that works with a lot of themes built for Shopify that does not require editing the theme of the code itself. Instead, we are going to add some formatting to the item name, in this case, sale, right in the navigation settings.
Let me know how this goes and if there is anything else I can assist you with, I'm happy to help!
All the Best,
Bo
To learn more visit the Shopify Help Center or the Community Blog.
Hi, this doesn't for me. If I copy this to the name of SALE, the "<span style="color: red">SALE</style>" will show on navigation.
It works on the desktop version, but on the mobile version it doesn't work...
It' works for me: <span style='color: red'>SALE</span>
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024