Developer and Customization

3 Docs

Custom CSS per Gallery

Last Updated: May 20, 2026

Write CSS that applies only to a specific Gallery — automatically scoped so it won't affect the rest of your page. Use the SELECTOR keyword to target the Gallery's outer wrapper element directly.

Custom JavaScript per Gallery

Last Updated: May 20, 2026

Write JavaScript that runs after a specific Gallery initialises on the page — hook into Gallery events, modify behaviour, or integrate with third-party scripts, with built-in security restrictions for non-admin users.

Lightbox: Developer Reference

Last Updated: May 20, 2026

Custom events, HTML trigger attributes, the data-fg-lb-* settings system, and the REST endpoint used by the Lightbox info panel.