Shopify themes, liquid, logos, and UX
How do I get the mobile view's menu item to appear the same as my desktop's? Ie: "sale" to appear bold and red
This is the code I used under base.css:
#HeaderMenu-shop{font-weight:bold}
#HeaderDrawer-shop{font-weight:bold}
#HeaderMenu-sale{font-weight:bold}
#HeaderDrawer-sale{font-weight:bold}
#HeaderMenu-sale{color:#DC143C;}
and this under theme.liquid:
<style>
nav.header__inline-menu .header__menu-item,
#menu-drawer .menu-drawer__menu-item{
font-weight: bold
red
}
</style>
I'm using Sense theme.
Appreciate the advice.
Solved! Go to the solution
This is an accepted solution.
Hey @uc_pharm ,
To make the "SALE" menu item in your mobile menu (drawer) appear red and bold (just like the desktop version), you’ll need to:
Fix the CSS code in theme.liquid:
What you had:
font-weight: bold
red
This is incorrect because red is not a valid CSS property by itself.
Replace with:
<style>
#HeaderMenu-sale {
color: #DC143C;
font-weight: bold !important;
}
#HeaderDrawer-sale {
color: #DC143C;
font-weight: bold !important;
}
</style>
The #HeaderMenu-sale targets desktop; #HeaderDrawer-sale targets mobile.
Let me know if you want to make the hover state red too, or if you're using dynamic menu items that need class-based targeting instead of IDs.
If you want any other tweak with you store please feel free to reach out thanks
Best Regards
Rajat
Shopify Expert
This is an accepted solution.
Hey @uc_pharm ,
To make the "SALE" menu item in your mobile menu (drawer) appear red and bold (just like the desktop version), you’ll need to:
Fix the CSS code in theme.liquid:
What you had:
font-weight: bold
red
This is incorrect because red is not a valid CSS property by itself.
Replace with:
<style>
#HeaderMenu-sale {
color: #DC143C;
font-weight: bold !important;
}
#HeaderDrawer-sale {
color: #DC143C;
font-weight: bold !important;
}
</style>
The #HeaderMenu-sale targets desktop; #HeaderDrawer-sale targets mobile.
Let me know if you want to make the hover state red too, or if you're using dynamic menu items that need class-based targeting instead of IDs.
If you want any other tweak with you store please feel free to reach out thanks
Best Regards
Rajat
Shopify Expert
Thank you! This works!
Hey @uc_pharm
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
a#HeaderDrawer-sale {
color: red !important;
}
</style>
RESULT:
If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hello @uc_pharm
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.
@media only screen and (max-width: 767px) {
#HeaderDrawer-shop {
color: red !important;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hi @uc_pharm , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
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