Desktop menu formatting is not showing in mobile view

Solved

Desktop menu formatting is not showing in mobile view

uc_pharm
Tourist
7 0 3

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

Screenshot 2025-04-25 075118.png

Screenshot 2025-04-25 075141.png


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.

Accepted Solution (1)

rajweb
Shopify Partner
825 71 155

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

https://rajatweb.dev/

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev

View solution in original post

Replies 5 (5)

rajweb
Shopify Partner
825 71 155

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

https://rajatweb.dev/

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev
uc_pharm
Tourist
7 0 3

Thank you! This works! 

 

Moeed
Shopify Partner
7537 2035 2501

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:

Moeed_0-1745559769254.png

 

If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


GTLOfficial
Shopify Partner
856 176 191

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

1 .png

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

topnewyork
Astronaut
1368 165 224

Hi @uc_pharm , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month