Replace standard WordPress Gallery block and legacy shortcode handler, opening galleries using PhotoSwipe
Author: | Thorsten Hartmann (th23) (profile at wordpress.org) |
WordPress version required: | 4.2 |
WordPress version tested: | 6.6.1 |
Plugin version: | 4.0.0 |
Added to WordPress repository: | 28-08-2024 |
Last updated: | 28-08-2024 |
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | |
Total downloads: | 240 |
Active installs: | 20+ |
![]() Click to start download |
WordPress has come a long way to be a fully featured content editor system, but the default gallery does not keep up with it. And while there are many plugins with various features, I did not find a small and simple one putting the focus on enlarged images.
PhotoSwipe is a great basis and thus core component of my th23 Gallery plugin, which replaces the WordPress default to output galleries into a way containing all key information required while maintaining a simple and easy markup.
th23 Gallery is built with some few goals in mind:
- Unintrusive way to focus on images
- Leveraging PhotoSwipe / Lightbox-like overlay
- Navigation between images in all galleries in a post via intuitive swipe, keyboard or mouse activity
- Compatibile with modern blocks and legacy shortcodes
- Simple markup and styling for thumbnail preview images (polaroid-style)
- Plain styling for medium / large preview images allowing for theme based style
- Minimized footprint on page loading
Usage
th23 Gallery works out-of-the-box and does not require any special handling – right after activation all embedded galleries will use PhotoSwipe to enlarge pictures.
Note: Polaroid-style works only on galleries which have set the preview image size to Thumbnail
Note: Previously inserted galleries might require a review to ensure link to media file and preview image size are set to work as expected – especially when also using the plugin on legacy shortcodes.
FAQ
ChangeLog