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?
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024