Skip to content

Customising with CSS and template overrides

CSS classes and variables, and how to override JoomClock layouts in your template.

Updated 1 min read

Every module's root element is .joomclock, with modifier classes for its choices:

Class Meaning
.joomclock--light / .joomclock--dark Theme
.joomclock--flip, .joomclock--neon, .joomclock--a-railway, … Clock style
.joomclock--cal-month, .joomclock--cal-week, .joomclock--cal-mini, .joomclock--cal-agenda, .joomclock--cal-datecard Calendar style
.joomclock--stacked, .joomclock--side, .joomclock--hero Combined layout
.joomclock--scheme-{name} Colour scheme
.joomclock--radius-sharp / -rounded Corner style

The design colours are CSS variables on the module (--jc-accent, --jc-surface, --jc-text, --jc-border, and others) that you can override in your template's CSS:

.joomclock { --jc-accent: #0f766e;
}

Add your own classes with Appearance › Module Class.

Template overrides. JoomClock's layout files are the standard module layouts in mod_joomclock/tmpl/. You can override them the normal Joomla way: copy a file into templates/YOUR_TEMPLATE/html/mod_joomclock/. The layouts output static markup and one small block of settings as JSON; JavaScript fills in only the time-dependent parts.

If you use a template or plugin that combines or delays scripts, exclude media/mod_joomclock/js/ from it.

Image

Everything you need to build on Joomla — one subscription away.

Resources