Use the Lightbox and Accessible Gallery Controls
On this page
Documentation pages
Open and close the lightbox
- Open a product using Gallery Spotlight and move to the image or video you want to inspect.
- Select an image’s lightbox link or the gallery’s expand control. For a video, use its expand control rather than expecting the playback area to behave like an image link.
- Use the lightbox’s previous/next controls to browse its current media.
- Close it with the close button or Escape.
Expected result: a fullscreen overlay shows the current gallery’s media. When you are browsing a variation collection, the lightbox follows that collection rather than adding the parent’s videos and photos. Opening the lightbox pauses inline playback so that the same product does not continue playing underneath it.
The lightbox wraps between its last and first items. The global Loop Slides setting controls the main gallery, not this independent lightbox behaviour.
Keyboard and touch
| Action | How to use it |
|---|---|
| Move between interactive controls | Use Tab and Shift+Tab. |
| Activate a focused button | Use Enter or Space. |
| Activate a focused image link | Use Enter. |
| Browse lightbox items | Use Left/Right arrow keys or the lightbox navigation buttons. |
| Close the lightbox | Use Escape or its close button. |
| Browse on a touchscreen | Swipe between gallery or lightbox items; tap thumbnails where available. |
Keyboard arrow navigation is documented for the lightbox. In the main gallery, use its focusable controls rather than assuming global arrow keys will move slides. Video-player controls can handle keys while the player has focus.
Collection actions have descriptive accessible names, and loading, errors and selection results are announced through status messages. After Select, the relevant product options are brought into view; an unresolved choice can receive focus so the shopper can complete it.
Mobile layouts
At widths up to 920 pixels, thumbnails move below the main image. Mobile Thumbnails can hide them. At phone widths up to 600 pixels, a variation collection hides the main arrow/counter group to make space for its caption and Select action. Swiping and available thumbnails provide navigation in that view.
Test a real phone-sized layout with long variation names, several images and any video. Ensure important text is not baked into tiny thumbnail images and that the normal variation selectors remain understandable.
Reduced motion and video
Gallery slide transitions, collection transitions and selection highlighting adapt to the device’s reduced-motion preference. The loading indicator can use a gentler pulse. This does not promise that every animation inside a third-party video player or fullscreen viewer is removed.
Reduced motion does not automatically disable video autoplay. If a clip should start only when requested, untick Autoplay and enable Show Controls in the product’s Gallery Spotlight tab. See video playback settings.
Prepare accessible media
- Add meaningful alternative text to product images in the WordPress Media Library. Describe the product detail shown rather than repeating a filename.
- Use clear image titles where they are helpful; image titles can appear as lightbox descriptions.
- Give product attributes and variation values concise, descriptive names. These contribute to collection labels.
- Choose collection colours with visible focus and highlight states, then check them against your theme.
- Provide essential spoken information in accessible text or through your video’s captioning facilities. Gallery Spotlight’s poster editor is not a caption-track editor.
A gallery’s controls are only part of an accessible product page. Check your theme, product selectors, media content and checkout together; this guide does not assert that installing the plugin makes a whole site compliant with an accessibility standard.
For layout controls, see gallery settings. For errors or conflicts, see troubleshooting.