Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 21h 28m 26s
Claim 50% off
Awaiting an answer Templates

Font color for child submenu

Asked by Daniel Michaels 1 year ago Last activity 1 year ago

2 replies

Paul Frankowski Senior Staff
1 year ago · edited

Hi Daniel,

try that Custom CSS:

.sp-megamenu-parent .sp-dropdown li.sp-menu-item a ul li a {color: #333;}

Daniel Michaels Asked this

Thank you for your fast reply as it helped me narrow down where to look for the classes.

I couldn't get that particular code to fix the problem, but after some testing and sleuthing, I got it to work.

/* Base: let theme control default link color */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item ul li a {
  color: inherit !important;
}

/* LIGHT MODE (or anything that's not Dark):
   keep white text on the dark hover chip */
body:not([data-sppb-color-mode="Dark"]) .sp-dropdown-sub .sp-dropdown-items > li.sp-menu-item > a:hover,
body:not([data-sppb-color-mode="Dark"]) .sp-dropdown-sub .sp-dropdown-items > li.sp-menu-item > a:focus {
  color: #fff !important;
}

/* DARK MODE:
   last level hover chip is light, so make text dark */
body[data-sppb-color-mode="Dark"] .sp-dropdown-sub .sp-dropdown-items > li.sp-menu-item > a:hover,
body[data-sppb-color-mode="Dark"] .sp-dropdown-sub .sp-dropdown-items > li.sp-menu-item > a:focus {
  color: #111 !important; /* or var(--bs-body-color, #111) */
}
Log in to reply.