Shopify themes, liquid, logos, and UX
I want to add a “SALE“ sign over a navigation point. The shape does not really matter. But it should also be formatted in the mobile menu and fit over it. It can be exactly above a navigation point. Does anyone have a custom code for this and a short guide?
Grateful for any help!
Solved! Go to the solution
This is an accepted solution.
Add this code to your theme's CSS file.
ul.list-menu li {
position: relative;
}
ul.list-menu li:nth-child(2):before {
content: "Sale";
background: #f49961;
color: #fff;
padding: 2px 5px;
line-height: 1;
position: absolute;
top: -3px;
right: 0px;
}
You can adjust the code for both mobile and desktop view. I hope it will give you a good start.
Hi @sim25ecom, please share your store URL so that I can write the CSS code for you.
Thanks for you help mate. Just for the normal dawn theme. The shop is not live yet, because the shop is in the development mode. Is that enough information?
But you can access with password if you want: https://schwarzwaldcosmetics.myshopify.com/
Password: nauthi
This is an accepted solution.
Add this code to your theme's CSS file.
ul.list-menu li {
position: relative;
}
ul.list-menu li:nth-child(2):before {
content: "Sale";
background: #f49961;
color: #fff;
padding: 2px 5px;
line-height: 1;
position: absolute;
top: -3px;
right: 0px;
}
You can adjust the code for both mobile and desktop view. I hope it will give you a good start.
That works great. Thank you so much!
The code that you created for me works really well. Thank you so much for that again! Is that possible to change the mobile position over the shop navigation point like in the screenshot here?
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025