Custom CSS in Header now working on Mobile Menu.

Solved

Custom CSS in Header now working on Mobile Menu.

Aidenma23
Tourist
7 0 3

.menu-promotion__title {
margin-bottom: 0px;
}
.navigation__link.navigation__column-title.heading-font {
color: red;
}

Works on the header on the website, but on mobile on the side menu, nothing is effecting it. I'm on the mode theme.

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Thanks for the info, it would be different code cause its a drawer menu. Check this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

div#MobileNavigationDrawer ul.navigation__tier-1, a.mobile-nav-toggle.tap-target {
    color: #e93324;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1700342817176.png
  • If it doesnt work, add !important. 

 

div#MobileNavigationDrawer ul.navigation__tier-1, a.mobile-nav-toggle.tap-target {
    color: #e93324 !important;
}

 

  • And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 7 (7)

Made4uo-Ribe
Shopify Partner
10038 2387 3014

Hi @Aidenma23 

You need to add media query. If you would not mind can I take a look? And share your store URL. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Aidenma23
Tourist
7 0 3

The site is not live yet. This is the preview I think. 
https://solarproslocker.com/?_ab=0&_fd=0&_sc=1

Made4uo-Ribe
Shopify Partner
10038 2387 3014

This is an accepted solution.

Thanks for the info, it would be different code cause its a drawer menu. Check this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

div#MobileNavigationDrawer ul.navigation__tier-1, a.mobile-nav-toggle.tap-target {
    color: #e93324;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1700342817176.png
  • If it doesnt work, add !important. 

 

div#MobileNavigationDrawer ul.navigation__tier-1, a.mobile-nav-toggle.tap-target {
    color: #e93324 !important;
}

 

  • And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Aidenma23
Tourist
7 0 3

Thank you so much! I'm also trying to make the image in the mobile headers larger, any change you could help with that? 

Made4uo-Ribe
Shopify Partner
10038 2387 3014

Yes sure, only in the desktop? if it is try this one. 

Same Instruction.

 

@media (min-width: 768px){
.navigation--desktop {
    font-size: 25px;
}
}

 

If its not working add some !important;

And Save .

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Aidenma23
Tourist
7 0 3

I want to make the promotion card images larger only on mobile, not the text on desktop.

Aidenma23
Tourist
7 0 3

I've tried adding a media inqury:

@media and (max-width: 768px) {

But it doesn't work. Possibly I am doing it wrong?