Skip to the main content

Webal Colour mode switch

Three buttons that let a visitor pick light, dark or automatic colours for the whole page.

Webal Colour mode switch shows three buttons, Light, Dark and Auto, so a visitor can choose how the site looks. It switches the whole page, not just the box it sits in, and it remembers the choice. It appears only when the Webal Blocks option Site colour mode is set to Auto with a visitor switch. Below, the same module in four settings, each with the steps to set it up.

These four settings are only a sample. Every option of Webal Colour mode switch can be combined with the others, so it can look many more ways than shown here: each option is explained in the options of the Webal Colour mode switch manual.

On this page

  1. Icons and words
  2. Icons only
  3. Words only, large
  4. Dark colours

Icons and words

Three buttons, each with an icon and a word, and the current choice marked. Press Dark and the whole page turns dark.

How to set this up

In the administrator choose Content, then Site Modules, press New and choose Webal Colour mode switch. First open Components, then Webal Blocks, then Options, and set Site colour mode to Auto with a visitor switch.

  1. On the Module tab, keep What is shown on Icons and words and Size on Standard (2.75 rem, about 44 pixels).
  2. Choose the Position, for example one in your header or footer, press Save, then pick the pages on the Menu Assignment tab.
  3. The switch changes the whole page. Every switch on the page stays in step with the others.

Icons only

The tidiest look: three icon buttons. Each still has a name that a screen reader says.

How to set this up

Open your Webal Colour mode switch module from Content, then Site Modules.

  1. On the Module tab, set What is shown to Icons only (the name is read out by screen readers).
  2. Press Save & Close.

Words only, large

Three word buttons at the larger size, which suits a footer or a settings area.

How to set this up

Open your Webal Colour mode switch module from Content, then Site Modules.

  1. On the Module tab, set What is shown to Words only.
  2. Set Size to Large (3.25 rem, about 52 pixels).
  3. Press Save & Close.

Dark colours

The switch in dark colours, for a switch in a dark footer on a light page.

How to set this up

Open your Webal Colour mode switch module from Content, then Site Modules.

  1. On the Layout tab, under Colour scheme, choose Dark.
  2. This styles only the box of the switch. The buttons still change the colours of the whole page.
  3. Press Save & Close.

Every module, one licence

Webal Blocks: 39 modules for Joomla 6, with Webal Layouts and a manual for every block. From £59 a year, including VAT.