Shopify themes, liquid, logos, and UX
Hi! I'm using the Trade theme and was wondering if it would be possible to change the menu color (dropdown menu). I'd love for it to be white with black text until it's hovered over and then change the background to black with white text for what is being hovered over. I'm not sure if it's possible or if it even makes sense.
Any help is appreciated! Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi @notsogood1 ,
You just need to add the !important property to make sure this code is always applied. It like this
@keyframes indeterminateAnimation {
0% {
transform: translateX(-100%) scaleX(0);
}
40% {
transform: translateX(50%) scaleX(1);
}
100% {
transform: translateX(100%) scaleX(0);
}
}
.menu-drawer__menu-item--active {
color: black !important;
background-color: white !important;
}
.menu-drawer__menu-item:focus, .menu-drawer__close-button:focus, .menu-drawer__menu-item:hover, .menu-drawer__close-button:hover {
color: white !important;
background-color: black !important;
}
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hi @notsogood1 ,
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hi, my apologies. Here you go:
f43113-ef.myshopify.com
pass: eantia
Hi @notsogood1 ,
You can follow these steps
Step 1: Navigate to Online Store > Themes > Edit code and find base.css file
Step 2: Insert below code at the end file and Save them
.menu-drawer__menu-item--active {
color: black;
background-color: white;
}
.menu-drawer__menu-item:focus, .menu-drawer__close-button:focus, .menu-drawer__menu-item:hover, .menu-drawer__close-button:hover {
color: white;
background-color: black;
}
It would be like this
It doesnt work, let us know that and we happy to giving a new solution for you.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Thank you. I must be doing something wrong because I've entered this (as well as the other codes given to me on this thread) and it's not working. Here is a screenshot.
Hi @notsogood1 ,
Some thing wrong on your file. Please replace the code below from line 3558.
@keyframes indeterminateAnimation {
0% {
transform: translateX(-100%) scaleX(0);
}
40% {
transform: translateX(50%) scaleX(1);
}
100% {
transform: translateX(100%) scaleX(0);
}
}
.menu-drawer__menu-item--active {
color: black;
background-color: white;
}
.menu-drawer__menu-item:focus, .menu-drawer__close-button:focus, .menu-drawer__menu-item:hover, .menu-drawer__close-button:hover {
color: white;
background-color: black;
}
Hope it can help you.
If our suggestion is useful, please let us know by giving a like or mark as solution. Thank you 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Replaced that but still no luck. I haven't messed with anything else within the code so I'm unsure as to why it's not working. I don't want you to spend too much time on this but thank you for your suggestions! I appreciate it.
This is an accepted solution.
Hi @notsogood1 ,
You just need to add the !important property to make sure this code is always applied. It like this
@keyframes indeterminateAnimation {
0% {
transform: translateX(-100%) scaleX(0);
}
40% {
transform: translateX(50%) scaleX(1);
}
100% {
transform: translateX(100%) scaleX(0);
}
}
.menu-drawer__menu-item--active {
color: black !important;
background-color: white !important;
}
.menu-drawer__menu-item:focus, .menu-drawer__close-button:focus, .menu-drawer__menu-item:hover, .menu-drawer__close-button:hover {
color: white !important;
background-color: black !important;
}
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
That worked! Thank you so much!
Hi @notsogood1 ,
We're happy to see that our suggestion helped you solve the issue. Should you need any further information, please do not hesitate to contact us by tagging directly at Community post. We will check and let you know soon.
We would really appreciate it if you could mark the previous solutions. It could be helpful for other merchants as well. Have a nice day 😍
If our suggestions are useful, please let us know by giving it a like, marking it as a solution.
MIDA: Heatmap, Record & Replay |BLOOP Referral Program, Reward |
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hello @notsogood1 ,
Edit code > Find base.css file > Given code add the bottom.
If you want to change complete menu background color, use this code.
list-menu {
background: yellow;
}
If you want to change the drawer color, use this code.
.menu-drawer__navigation {
background: pink;
}
.menu-drawer__close-button {
background: pink;
}
Save changes!
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