Images in post open in the lightbox, but not the featured image. I have added the class cm-featured-image
to plugin-settings.json
Our theme Colormag Pro has its own Lightbox for featured image only, but I disabled that in the theme settings.
WordPress 6.4.3, PHP 8.1
]]>How do I enable the zoom feature? I see that you can zoom in the photo in your demo.
]]>This page goes into a critical error state due to the plugin:
https://michaelgoitein.com/speaking/
I enlisted help from WordPress.com support, and they asked me to share this error with you:
[30-Oct-2023 01:52:32 UTC] PHP Fatal error: Uncaught Error: Call to a member function getAttribute() on null in /srv/htdocs/wp-content/plugins/simple-lightbox-fslight/classes/RewriteFigureTagsClass.php:349
Stack trace:
#0 /srv/htdocs/wp-content/plugins/simple-lightbox-fslight/classes/RewriteFigureTagsClass.php(160): mvbplugins\fslightbox\RewriteFigureTags->rewriteHTML('\n<p>A selection...')
#1 /wordpress/core/6.3.2/wp-includes/class-wp-hook.php(310): mvbplugins\fslightbox\RewriteFigureTags->changeFigureTagsInContent('\n<p>A selection...')
#2 /wordpress/core/6.3.2/wp-includes/plugin.php(205): WP_Hook->apply_filters('\n<p>A selection...', Array)
#3 /wordpress/plugins/gutenberg/16.9.0/build/block-library/blocks/post-content.php(48): apply_filters('the_content', '<!-- wp:paragra...')
#4 /wordpress/core/6.3.2/wp-includes/class-wp-block.php(258): gutenberg_render_block_core_post_content(Array, '<!-- wp:paragra...', Object(WP_Block))
#5 /wordpress/core/6.3.2/wp-includes/class-wp-block.php(244): WP_Block->render()
#6 /wordpress/core/6.3.2/wp-includes/blocks.php(1133): WP_Block->render()
#7 /wordpress/core/6.3.2/wp-includes/blocks.php(1171): render_block(Array)
#8 /wordpress/core/6.3.2/wp-includes/block-template.php(231): do_blocks('<!-- wp:templat...')
#9 /wordpress/core/6.3.2/wp-includes/template-canvas.php(12): get_the_block_template_html()
#10 /wordpress/core/6.3.2/wp-includes/template-loader.php(106): include('/wordpress/core...')
#11 /wordpress/core/6.3.2/wp-blog-header.php(19): require_once('/wordpress/core...')
#12 /wordpress/core/6.3.2/index.php(17): require('/wordpress/core...')
#13 {main}
thrown in /srv/htdocs/wp-content/plugins/simple-lightbox-fslight/classes/RewriteFigureTagsClass.php on line 349
]]>
Message from the Plugin-Author:
I’m sorry to say that V1.5.0 of the plugin will in some cases crash your website. There is a hotfix available. If you install the Plugin for the first time this won’t happen for your site.
For existing users: Login with ftp, backup your plugin-settings.json, delete the plugin folder in ../wp-content/plugins and finally delete the file .maintenance in your html-Folder (where wp-config.php is.). The backup-restore process will not work.
If you still want to use the plugin: Will be solved with V2.0.0. But for the moment I’m still testing.
]]>Hi,
I am using your plugin but when I try to exclude all the pages (deleting the “page” in the json file), the effect is disabled everywhere, including my posts, which ones contains my galleries.
Can you please provide support for this issue ?
Thank you
]]>Hi, this is great – so simple!
How can I enable this on CPT’s? I’ve tried adding “single”, “single-{post-type}” etc. but can’t get it to work on a CPT I created using ACF.
]]>Hello! First, I have to thank you a lot for this fantastic plugin! I love the Lightbox library incredibly, as well as the performance of your plugin! Can this plugin work with Embedded videos from youtube?
]]>just encountered once more that the settings.json is being overwritten from an update. kind of pity when added cpts and forgetting to set them manually again …
any option to get around this and save the settings somewhere to be preserved from being reset by updates again?
Hallo Martin,
First of all, I love the idea of your plugin! Most other lightbox plugins are totally overloaded – i like the simplicity of yours.
I would like to use the lightbox for images in other plugins or HTML blocks. (I work a lot with Loops & Logic or Beaver Builder). I tested different markups but the lightbox never opened.
<div>
<a href="link/to/image.jpg">
<img class="test" src="link/to/image.jpg">
</a>
</div>
I added a custom class “test” to the json configuration file and tried with adding this class to the wrapper div, the a link element or the img tag itself. But i guess i missed something. I tried it on a normal page post type.
Do you know what else i could try or what i did wrong?
Kind regards and have a nice day
]]>