{"id":324717,"date":"2026-06-15T12:33:47","date_gmt":"2026-06-15T12:33:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/lmdm-lightbox-image-caption\/"},"modified":"2026-06-15T12:33:20","modified_gmt":"2026-06-15T12:33:20","slug":"lmdm-lightbox-image-caption","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/lmdm-lightbox-image-caption\/","author":5862608,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.0","requires":"6.9","requires_php":"8.0","requires_plugins":null,"header_name":"LMDM Lightbox Image Caption","header_author":"Nic Bug","header_description":"Adds a lightbox-only image caption toggle for core Image and Gallery blocks.","assets_banners_color":"","last_updated":"2026-06-15 12:33:20","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/lassmichdasmachen.de","rating":0,"author_block_rating":0,"active_installs":0,"downloads":37,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"nicmare","date":"2026-06-15 12:33:20"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Lightbox panel with <code>Show caption<\/code> toggle in the Image block","2":"Lightbox panel with <code>Show caption<\/code> toggle in the Gallery block","3":"Native lightbox with displayed image description"}},"plugin_section":[],"plugin_tags":[6783,210,133,237,265321],"plugin_category":[],"plugin_contributors":[257089],"plugin_business_model":[],"class_list":["post-324717","plugin","type-plugin","status-publish","hentry","plugin_tags-caption","plugin_tags-gallery","plugin_tags-image","plugin_tags-lightbox","plugin_tags-lmdm","plugin_contributors-nicmare","plugin_committers-nicmare"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/lmdm-lightbox-image-caption.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Wordpress ships with a native Lightbox-Effect for image blocks. This plugin adds one tiny additional option to the core image and gallery blocks: <code>Show Caption<\/code>.<\/p>\n\n<p>When the toggle is enabled, the native lightbox receives the current image alt text as a <code>data-img-alt<\/code> attribute on the enlarged lightbox figure. A small frontend CSS then displays that value as a caption overlay inside the lightbox image.<\/p>\n\n<p>Please note: The caption text is taken from the image <code>alt<\/code> attribute.<\/p>\n\n<p>The toggle is only available when the native Lightbox-Effect is active. If the lightbox is disabled or the image is linked somewhere else, the caption option is disabled as well.<\/p>\n\n<h3>Plugin Features<\/h3>\n\n<p>\u2714  adds a new toggle <code>Show caption<\/code> to the core Image block\n\u2714  adds the same toggle to the core Gallery block\n\u2714  the toggle can only be enabled when the native Lightbox-Effect is active\n\u2714  ships with German translation files for the editor toggle\n\u2714  uses the image <code>alt<\/code> attribute as value for <code>data-img-alt<\/code>\n\u2714  adds the attribute only to the enlarged image figure in the lightbox\n\u2714  supports galleries by passing the gallery setting to the nested image blocks\n\u2714  outputs the value with a lightweight frontend CSS pseudo element\n\u2714  uses no new block and does not replace the existing Image or Gallery blocks<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/lmdm-lightbox-image-caption<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> screen in WordPress.<\/li>\n<li>Open a post or page in the block editor.<\/li>\n<li>Add or select an <strong>Image<\/strong> or <strong>Gallery<\/strong> block.<\/li>\n<li>Enable the native Lightbox-Effect first.<\/li>\n<li>Enable <code>Show caption<\/code> in the Lightbox panel.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20it%20create%20a%20new%20block%3F\"><h3>Does it create a new block?<\/h3><\/dt>\n<dd><p>No, it only extends the existing core Image and Gallery blocks.<\/p><\/dd>\n<dt id=\"does%20it%20use%20the%20normal%20image%20caption%20field%3F\"><h3>Does it use the normal image caption field?<\/h3><\/dt>\n<dd><p>No. It uses the image <code>alt<\/code> attribute and writes it to <code>data-img-alt<\/code> in the native lightbox overlay.<\/p><\/dd>\n<dt id=\"why%20is%20the%20toggle%20disabled%3F\"><h3>Why is the toggle disabled?<\/h3><\/dt>\n<dd><p>The toggle is only active when the native Wordpress Lightbox-Effect is enabled. If the image links to a media file, attachment page or custom URL, the native lightbox is not active and the option is disabled.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20galleries%3F\"><h3>Does it work with galleries?<\/h3><\/dt>\n<dd><p>Yes. Enable the native Lightbox-Effect for the gallery first and then enable <code>Show caption<\/code>. The setting is passed to the gallery images when the block is rendered.<\/p><\/dd>\n<dt id=\"does%20it%20load%20any%20additional%20assets%20in%20the%20frontend%3F\"><h3>Does it load any additional assets in the frontend?<\/h3><\/dt>\n<dd><p>Yes, it loads one small CSS file that displays the <code>data-img-alt<\/code> value as a pseudo element in the native lightbox overlay.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20disable%20the%20plugin%3F\"><h3>What happens when i disable the plugin?<\/h3><\/dt>\n<dd><p>The additional toggle and frontend caption output disappear. Existing Image and Gallery blocks continue to work as normal core blocks.<\/p><\/dd>\n<dt id=\"who%20is%20the%20author%20of%20the%20plugin%3F\"><h3>Who is the author of the plugin?<\/h3><\/dt>\n<dd><p>The Wordpress-User \"nicmare\" vibe coded it. Means he had the idea of the plugin and uses AI to craft the code.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>first release of the plugin<\/li>\n<li>added German translation files for the editor toggle<\/li>\n<\/ul>","raw_excerpt":"Adds a lightbox-only image caption toggle for core Image and Gallery blocks.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/324717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=324717"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nicmare"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=324717"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=324717"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=324717"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=324717"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=324717"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=324717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}