Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 15d 07h 10m 49s
Claim 50% off
Solved Templates

Dropdown background submenus mouseover color change

Asked by gemmajoom 1 year ago Last activity 1 year ago

Hello, how can I change the background color of the selected submenu?

https://ibb.co/KxkVWDj6

I tried this code in Custom CSS, but doesn't work:

.sp-megamenu-parent .sp-dropdown li.sp-menu-item >a:hover{
  background-color: #2a3325 !important;
}

Using Joomla 5.3, Shaper Salon template.

Thanks

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

Ciao. Use that

.secondary-menu .menu-child li a::after, 
.secondary-menu .sp-dropdown-inner li a::after, 
.sp-megamenu-parent .sp-dropdown .menu-child li a::after,
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner li a::after {background-color: #6F5D41; }
gemmajoom Asked this

Thank you Paul, it works!

4 more replies

Rashida Rahman Staff

Hi there!

Thanks for reaching out.

Unfortunately, the screenshot is not visible from my end. Would you please share your site URL here to check?

Best regards,

gemmajoom Asked this
1 year ago · edited

There is also a problem with the offcanvas menu, it is not visible, even though the module has been activated and associated with the offcanvas position

Rashida Rahman Staff

Hi,

Sorry for the delay. I have looked into your site and it seems you are trying to achieve this for a single page anchor links submenu items. Do you really mean active submenu's background color? Or background color of submenu while hovering on them?

Kindly specify. Sorry for the confusion...

Active menu's color can not be defined as this template is not designed for onepage solution, but if you mean hover, then yes, it's possible.

Best regards,

gemmajoom Asked this

I mean background color of submenu while hovering on them.
I would like to replace the black with another color.

Rashida Rahman Staff

Thanks for the confirmation and glad to see that you have achieved it already:)

Have a nice day!

Log in to reply.