Clickable Featured Image

설명

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. This plugin has been tested with the “Lightbox for Gallery & Image Block” plugin and the GeneratePress theme.

Features

  • 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

설치

  1. Upload the folder clickable-featured-image to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. That’s it! The plugin will automatically make your featured images clickable on single post pages and archive pages.

FAQ

Does the plugin have a Settings page?

Currently, the functionality is so simple, that there is no need to set anything. Activate it, and it just works.

Will this plugin work with any lightbox plugin?

This plugin has been tested with the “Lightbox for Gallery & Image Block” plugin, but it should work with other lightbox plugins as well. Please note that compatibility with other lightbox plugins is not guaranteed.

Will this plugin work with any WordPress theme?

Clickable Featured Image has been tested with the GeneratePress theme. It should work with most themes, but compatibility with all themes is not guaranteed. If you find any issues with your theme, please let us know.

Can I use this plugin without a lightbox plugin?

Yes. The featured image will link directly to the full-size image file.

후기

2023년 11월 27일
While it worked perfectly for a single post, it disabled the ability to click to the posts in the archive pages and related posts widget etc.
모든 2 평가 읽기

기여자 & 개발자

“Clickable Featured Image”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Clickable Featured Image”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Clickable Featured Image”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.9

  • Fixed: Let Meow Lightbox re-register singular featured images by using wp-image-<id> classes instead of pre-setting data-mwl-img-id

1.0.8

  • Fixed: Register singular featured-image containers with Meow Lightbox when themes render them outside .entry-content

1.0.7

  • Fixed: Add data-mwl-img-id to singular featured images for Meow Lightbox compatibility

1.0.6

  • Fixed: Prevent duplicate anchor tags on query loops when theme already wraps featured images

1.0.5

  • Fixed: Added CSS to prevent layout spacing issues on archive pages with Twenty Twenty-Four theme

1.0.4

  • Fixed: Avoid wrapping full block markup on archives by linking only the image/picture, reducing theme layout spacing issues

1.0.3

  • 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

1.0.2

Fixed a syntax error in the plugin code that caused a parse error.

1.0.1

Updated stable tag and function names to follow guidelines for the Clickable Featured Image WordPress Plugin.

1.0

Initial release