Hello,
Have you cleared cache?
Please provide URL of your site.
Regards
Solved7 replies2 participantsUpdated by Rose Tyler
Hi Support,
I’m not sure how to modify the background color to black on CSS file for sub-menu of mega main menu (main-niv)?
I tried this below but no luck.
.main-nav {
background-color: black;
}
.main-nav .menu li a {
color: white;
font-size: 16px;
font-family: Open Sans;
}
.main-nav .menu > li .nav-sublist-dropdown ul li {
background-color: black;
}
.main-nav .menu > li .nav-sublist-dropdown .container > ul > li a {
border-left: 1px solid black;
border-right: 1px solid black;
border-top: 1px solid black;
border-bottom: 1px solid black;
}
Thanks and Best Regards,
Thomas
Hello,
Have you cleared cache?
Please provide URL of your site.
Regards
Hi Rose,
Yes, I did.
Please try the “Brand” menu.
Thanks and Best Regards,
Thomas
Hello,
Please change this code
.main-nav .menu > li .nav-sublist-dropdown ul li {
background-color: black;
}
to
.main-nav .menu > li .nav-sublist-dropdown {
background-color: black !important;
}
Regards
Hi Rose,
It worked. Many thanks.
Can I ask you one more question? How come under my “Account” it showed up a lot of links? How can I delete it?
Best Regards,
Thomas
Hello,
You’re welcome!
WooCommerce > Settings > Advanced > Account endpoints.
Also, you can create own menu Appearance > Menus > http://prntscr.com/mr9wn0
Regards
Hi Rose,
Well Noted.
Thanks again for your great help.
Best Regards,
Thomas
Hello,
You’re welcome!
Have a nice day.
Regards
The issue related to '‘How to modify the background color for sub-menu of mega main menu (main-niv)?’' has been successfully resolved, and the topic is now closed for further responses
Free AI store scan · SalesMax
Paste your store address. SalesMax AI shows which upsell moments are missing. No signup.
Free AI speed test · FlashMax
Paste your site address. FlashMax runs Google Lighthouse for phone and desktop, checks Core Web Vitals and lists what to fix. No signup.
Plumbing StoreFurniture
(live demo, opens in a new tab)
Electronic Mega MarketElectronics
(live demo, opens in a new tab)
Marseille 02Fashion
(live demo, opens in a new tab)
TypographyBusiness
(live demo, opens in a new tab)
Grocery MarketFood & drinks
(live demo, opens in a new tab)
MedicalBusiness
(live demo, opens in a new tab)
Minimal Fashion StoreFashion
(live demo, opens in a new tab)
DesignersBusiness
(live demo, opens in a new tab)
Eco Scooter StoreSports & travel
(live demo, opens in a new tab)
Mobile StoreElectronics
(live demo, opens in a new tab)
Furniture Store 02Furniture
(live demo, opens in a new tab)
Gym StoreSports & travel
(live demo, opens in a new tab)
Tea StoreFood & drinks
(live demo, opens in a new tab)
MarketingBusiness
(live demo, opens in a new tab)
Glasses StoreFashion
(live demo, opens in a new tab)
Bakery StoreFood & drinks
(live demo, opens in a new tab)