Make featured images clickable. Opens in lightbox on posts, links to post on archives. Zero configuration.
Clickable Featured Image for Lightbox & Archives is a WordPress plugin that enhances your featured images by making them clickable, opening the full-size image in a lightbox on single post pages, and linking to the post itself on archive pages like category listings.
- Make featured images clickable and open in a lightbox on single post pages
- Make featured images clickable and link to the post itself on archive pages
- Tested with "Lightbox for Gallery & Image Block" plugin
- Tested with GeneratePress theme
- Upload the folder
clickable-featured-imageto the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- That's it! The plugin will automatically make your featured images clickable on single post pages and archive pages.
Currently, the functionality is so simple, that there is no need to set anything. Activate it, and it just works.
This plugin has been tested with the "Lightbox for Gallery & Image Block" plugin, but it should work with other lightbox plugins as well.
Clickable Featured Image has been tested with the GeneratePress theme. It should work with most themes, but compatibility with all themes is not guaranteed.
Yes. The featured image will link directly to the full-size image file.
- Fixed: Let Meow Lightbox re-register singular featured images by using
wp-image-<id>classes instead of pre-settingdata-mwl-img-id
- Fixed: Register singular featured-image containers with Meow Lightbox when themes render them outside
.entry-content
- Fixed: Add
data-mwl-img-idto singular featured images for Meow Lightbox compatibility
- Fixed: Prevent duplicate anchor tags on query loops when theme already wraps featured images
- Fixed: Added CSS to prevent layout spacing issues on archive pages with Twenty Twenty-Four theme
- Fixed: Avoid wrapping full block markup on archives by linking only the image/picture, reducing theme layout spacing issues
- Fixed: No longer breaks archive page links when theme already wraps featured images
- Fixed: Added proper URL escaping for security
- Tested compatibility with WordPress 6.9
- Updated minimum PHP requirement to 7.4
Fixed a syntax error in the plugin code that caused a parse error.
Updated stable tag and function names to follow guidelines for the Clickable Featured Image WordPress Plugin.
Initial release
Fixes the remaining Meow integration bug by allowing the featured image to be queued dynamically instead of being skipped as already registered.
Completes the Meow Lightbox fix by registering featured-image header containers, so single-post featured images open correctly in the lightbox again.
Adds data-mwl-img-id to singular featured images for better Meow Lightbox compatibility.
Fixes duplicate link issue on query loops in Twenty Twenty-Four theme by detecting and skipping when theme already wraps images.
Fixes archive layout spacing issues on Twenty Twenty-Four theme by adding proper CSS for clickable featured images.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, or write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.