Docs

Lightbox & site behaviour

Smooth scrolling, back-to-top button, page transitions, preloader and the image lightbox.

On this page

The Theme tab of the Design System holds site-wide settings that are not about one element: whether your styles apply to the whole site, the base text and link colors, how the site scrolls and moves between pages, and how images open in the lightbox.

The Theme tab of the Design System with Apply to the whole site, the body, heading and link colors, Page background and the Site behaviour settings
Styles → Theme.

Open it in the editor with Styles in the left panel, then the Theme tab. Click Save Design System after your changes.

Apply the styles to the whole site

Apply to the whole site (on by default) uses your Design System for all text on the site, also on pages, posts and archives that are not built with Urmi:

  • the page body gets the Body text style, the Body text color and the Page background;
  • h1 to h6 headings get the Heading 1–Heading 6 text styles and the Heading color.

Turn it off if your theme should keep its own typography outside Urmi content. The same switch appears in Urmi → Settings → General as Load Urmi styles on every page.

Base colors

SettingWhat it does
Body text colorColor of normal text. Uses Text by default.
Heading colorColor of h1–h6 headings. Uses Headings by default.
Link colorColor of text links in Urmi content (not buttons). Uses Primary by default.
Link hover colorColor of text links on hover. Empty: no change.
Page backgroundBackground color of the page. Empty: your theme's background.

Site behaviour

SettingWhat it doesDefault
Smooth scrollingLinks to a section on the same page (such as #contact) glide to it instead of jumping, and stop below a sticky header.On
Back-to-top buttonShows a round button in the corner once visitors have scrolled down; it takes them back to the top. Choose the corner with Button side: Right or Left.Off
Page transitionsAnimates between pages: None, Cross-fade or Slide up. Works in browsers that support View Transitions; other browsers navigate as usual.None
PreloaderCovers the page until it has loaded, for at most 4 seconds: None, Spinner, Loading bar or Pulsing logo (your site logo, or the site name).None
Only on the first page of a visitWith a preloader: show it only once per visit, not on every page.On

All motion here respects visitors who prefer reduced motion: they get instant scrolling and no transitions or preloader animation. None of these effects run in the editor.

Tip

A preloader makes a site feel slower, because visitors wait for it even when the page is ready. Use it sparingly, for example on a portfolio home page with a large hero video.

The lightbox shows an image full screen when visitors click it, with arrows to browse through the other images of the same gallery or page.

The Lightbox settings in the Theme tab: Open image links in the lightbox, Background, Buttons & text, Show captions, Show 3 / 10 counter and Download button
Lightbox settings.
SettingWhat it doesDefault
Open image links in the lightboxEvery link to an image file opens in the lightbox, also in blog posts and WordPress galleries.On
BackgroundColor behind the image.Near-black
Buttons & textColor of the arrows, close button, caption and counter.White
Show captionsShows the image caption under the image.On
Show “3 / 10” counterShows the position in the set when there are several images.On
Download buttonAdds a button to download the image.Off
An interior image of the Project gallery page open in the lightbox, full screen on a dark background with the close button in the corner
An image opened in the lightbox on the live site.

These settings also apply to widgets that have their own lightbox option, such as the Image Gallery and Image Carousel. Visitors can browse with the arrow keys or by swiping, and close the lightbox with Esc or by clicking outside the image.

To open an image in the lightbox, set its link to the image file: in the Image widget, set Link to Image file (lightbox). To keep one image link out of the lightbox, add the attribute data-urmi-no-lightbox to the link (see Anchor, classes & attributes).