Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 23h 40m 33s
Claim 50% off
Solved SP Page Builder

Custom light/dark mode toggle in mainmenu

Asked by Remco 1 year ago Last activity 1 year ago

Hi,

I’m very excited about the new ability to configure variable colors in SP Page Builder Pro and about the built-in color switcher that lets you toggle between your configured modes. In most cases we only need a simple switch between light and dark mode.

Currently, the color switcher appears on the right side of the page, with an icon above and the color presets below. I would like to keep the core color-switching functionality but hide the default switcher UI on the right. Instead, I want to display a single icon in the main menu: when light mode is active, show a moon icon to switch to dark mode; when dark mode is active, show a sun icon to switch back to light mode.

Question: I can hide the default switcher with CSS, but is it possible to bind the color-switcher actions to my own icons? If so, could you please let me know how?

Thank you!

Kind regards,
Remco

Accepted answer

Marked as the solution

6 more replies

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry, right now this feature/functionality is not available.

-Thanks

Remco Asked this

Hi,

I know this functionality is not available, but i want to make it like i described, so can you answer my question please: I can hide the default switcher with CSS, but is it possible to bind the color-switcher actions to my own icons? If so, could you please let me know how?

Regards,
Remco

Toufiq Senior Staff

There is no settings/function to change by using page builder settings. If you wanna change it then have to modify the core file which is not possible. If you want to override the css code then you can do it by yourself. I hope now it's clear. Thank you

Paul Frankowski Senior Staff

BT

If icons are FontAwesome, you can change their color using Custom CSS.

Paul Frankowski Senior Staff

Ok, but after all what for you need it? Web Accessibility or Design idea?

Remco Asked this

It actually addresses both accessibility and modern design.

Dark mode reduces screen glare and blue light exposure, helping to lessen eye strain, especially in low light or evening environments. Nearly 82% of smartphone users now report using dark mode, and most prefer apps that offer a dark theme.

All major platforms including iOS, Android, Windows and macOS support dark mode natively, so seamless light and dark toggles have become a user expectation.

Research also shows that negative polarity displays significantly improve comfort during prolonged use.

These points demonstrate that a light and dark switch is not merely a design flourish but a fundamental accessibility feature and modern requirement.

Paul Frankowski Senior Staff

For Web Accessibility there are different, ready extension(s).


Yeah, I know it.

Log in to reply.