NTech
1
Hi there! How do I change the color of the text for the mobile version of dropdown menu?
Currently it is showing a light grey text over a black background. I would like it to be white text over black background.
Desktop version is working fine with black text over white background.
Thanks in advance!
https://www.nanotechsg.com/
@NTech I developed some custom code for you.
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset > theme.scss.liquid and paste this at the bottom of the file:
@media (max-width: 767px){
ul#MobileNav li{
background-color: #000000 !important;
}
ul#MobileNav li *{
color: #ffffff !important;
}
}
#000000 = background color
#ffffff = text color
You can change them as you need.
Let me know whether it works please, I’ll be happy to assist further if you need.
1 Like
Hello Ntech,
#MobileNav ul.mm-submenu.link-list li a {
#color: #fff;
}
Kindly use this CSS and add it in the theme file. The text will be changed to white color.
NTech
4
Thank you for the easy-to-follow solution! It works just like i would like it to be.
@NTech you’re welcome! glad to help you.
Next time feel free to contact me personally via e-mail.
Kind regards,
Diego
Aj0932
6
I’m also having trouble and did what I read applied to assets but nothing happens