Hello,
I used the below code to change the colour of my dropdown menu on desktop, however it didn’t change the mobile version. Does anyone know how to change mobile version or code that does both?
Thanks
A user successfully changed their desktop dropdown menu background color but needed help applying the same change to the mobile version.
Solution provided:
#menu-drawer!important to the background color property to work properlyOutcome:
The initial solution successfully changed the mobile dropdown menu background color for collections.
Outstanding issues:
Both follow-up questions remain unanswered in the thread.
Hello,
I used the below code to change the colour of my dropdown menu on desktop, however it didn’t change the mobile version. Does anyone know how to change mobile version or code that does both?
Thanks
Hi @MALIKO
Would you mind to share your Store URL website? with password if its protected. Thanks!
Hello!
It’s www.malkko.co.uk
Thanks!
Im sorry I cant reach your store, please check the URL again. Thanks!
Got it, Thanks! Try this one then.
@media only screen and (max-width: 989px){
div#menu-drawer {
background: #E8E3D9;
}
}
And Save.
Result:
Hi @MALIKO , welcome to the Shopify Community.
I wanted to share some resources with you that can help you with your theme customization needs. I’m not sure what theme you’re using, but all Shopify made themes come with 1 free hour of theme changes, you can read more about that here. For 3rd party themes they do not do this kind of customization, but you can connect with a Shopify Expert to make those changes for you.
Another great resource besides the Shopify Community, is the Shopify Partners and Developers Forum. You will find more people in that forum that are developers and partners and have more experience with coding. Always a great place to reach out to.
Thank you for the information. This a bit weird im sure that I already comment on this section.
Try this one.
@media only screen and (max-width:989px){
div#menu-drawer {
background: white;
}
}
And Save.
Result:
Hey,
I tried - doesn’t work on base.css. I also don’t have a theme.css or style.css?
Oh, okay. Would you mind to used this one.
Same Instruction.
@media only screen and (max-width: 989px){
div#menu-drawer {
background: #E8E3D9 !important;
}
}
Thanks!
This one worked! Thanks ![]()
Hey, this worked for the dropdown menu under for collections, but it hasnt changed the dropdown background for the cart.. Please can you advise how I can make it the same colour here? Thanks!
Hi Made4uo-Ribe, your solution worked, thanks so much. But for the first level mobile drop down menu. Do you know how to change background colour of the 2 level drop down menu, Refresh theme?