Customization

Customize a gallery with the Main CSS editor

Use gallery CSS for styling changes that are not covered by the template's regular customization controls.

Open the CSS editor

  • Open Galleries and select the gallery's settings or Customize Gallery control.
  • Open Advanced and choose Edit CSS where the selected template offers it.
  • Copy the current CSS to a backup before editing.
  • Add your rule, save the CSS, and save the gallery settings.
  • Test the gallery preview and the actual embedded page at desktop and mobile widths.

Controls and selectors vary by template. Use the standard customization settings when they already support the change you need.

Scope changes to the gallery

Inspect the rendered player to identify the element you want to style. A selector from one template may not exist in another. Keep rules narrow so they do not change player controls, captions, or unrelated galleries.

The gallery CSS editor may use the ~gallery_div~ placeholder to scope a rule to its generated container. Preserve that placeholder when adapting an existing template rule.

Add an image overlay for a compatible image-list template

The older hover-image recipe targets the ze_overlay element in a ze_imagelist template. Use it only after confirming that these classes exist in your selected template:

Example code

div#~gallery_div~ .ze_imagelist li a div.ze_overlay {
background-image: url("https://YOUR-DOMAIN.example/logo.png");
background-position: center center;
background-repeat: no-repeat;
}

Replace the example URL with your own HTTPS image. The rule changes the overlay's background; the template controls when that overlay appears. It does not replace the uploaded media file or add hover behavior to every gallery layout.

Check and undo changes

Test keyboard focus as well as hover, because touch devices do not have a persistent mouse-hover state. Check contrast and ensure that text remains readable. If a rule has no effect, inspect the current selector and check for template or host-page overrides.

Restore your backed-up CSS if needed. For reuse across many embeds, see layout templates and Galleries.