The option “swipe to close” is always working, even if I disable it in the settings.
]]>Hello,
This plugin is very good. He work fine with Chrome and Firefox. But is slow, very slow with Safari !
Can you check why and correct this little bug please ?
Thank you very much for your work.
]]>simple-lightbox.legacy.min.js seems to load even if I don’t have it enabled in Use Legacy Version.
As IE11 is well out of support and apparently disabled since Feb 2023, does it need to load or is there something i’m missing?
Thanks for the recent update that fixed the issues ??
]]>Hi I love the Plug-In and it’s flexibility. Unfortunately it’s not working with my installation of the TwentyTwentyThree Theme. In other Themes the images are loading in the lightbox but Captions are not working.
My guess is, that the default selectors aren’t working for the TwentyTwentyThree Theme, could you tell me which ones I have to choose for images and captions?
]]>Hi,
first of all i want to thank you for the great lightbox script!
I use the plain JS (not the plugin) inside a WordPress site. Here I have a gallery with many images that link to their media files.
Up to here everything works wonderfully. Now I want to use the caption and select it with
captionSelector: '+ figcaption',
captionType: 'text'
This also works great, BUT only if all elements have a caption. In my case there are only some and simplelightbox hangs on them.
TypeError: Cannot read properties of null (reading 'matches')
Is there a way to prevent this?
Many thanks and best regards
Patrick
]]>Suddenly all of the selectors I had that were allowing simplelightbox to work aren’t. I’ve added gb-block-image,simplelightbox,card in the additional selectors but it stil only works with wp-block-image, can you help?
This seems to be the case for things in the sidebar as well as on custom post types
]]>My settings are as follows.
PDF files are not excluded. ( https://snipboard.io/ftKQVc.jpg )
Can you please make PDF files excluded?
Hi Andre,
after updating Simplelightbox from 2.11. to 2.13. we get an error
Uncaught DOMException: Document.querySelector: 'HTML > BODY#2 (...) A.simplelightbox:nth-child(1) img' is not a valid selector
The provided link is the development environment where now 2.13 is installed. Please scroll down to “Produktfotos” where the gallery is located.
When you click on an image the lightbox opens and the error is thrown. You can not navigate with the arrow buttons or close the lightbox again.
When we switch back to 2.11. everything works fine.
There were no changes in the settings in the backend. The same thing happens when Simplelightbox is installed via bower.
Site information:
WordPress 6.1.1
PHP 8.1.19
Plugins are up to date
Since I have to fix the error I have to keep the 2.11 version on the main site.
Thank you for your support in advance! ??
Have a nice day
]]>Activating Simplelightbox breaks the design of the YITH WooCommerce Wishlist settings screen.
YITH WooCommerce Wishlist > Wishlist page options > Style & color customization
-Simplelightbox Activate-
https://snipboard.io/qjH2bf.jpg
-Simplelightbox Deactivate-
https://snipboard.io/sT9GrA.jpg
Is there any way to fix this. Or is there any chance you could fix it in the next update of your plugin?
]]>I’ve noticed that the arrows seem to be going in the wrong direction.
When I have several lightboxes on one page, and I click on the right arrow, I would think to should go to the next image, but it does in fact go to the previous one. And if I click left it goes to the next one.
I don’t know if this is intended, or if it’s an error.
I if it intended it would be great with an option on the settings page to select which way it should go.
Hi!
I’ve seem to have found an issue with the plugin. The background color of the caption overlay is always at 100%, not transparent, no matter what percentage I select it to be.
Is it possible to set a class that unselects lightbox, i.e. I don’t want this image to have a lightbox
Also, is it possible to have the image close on click anywhere, not just outside of the image or on the x?
]]>Hello.
Information for those who could not add rel= for grouping. Groups exactly within the post, useful on the listing pages.
Here is a solution I came up with.
Add to functions.php file
add_filter('wp_get_attachment_link', 'gallery_add_rel');
function gallery_add_rel($link) {
global $post;
return str_replace('<a href', '<a rel="gel' . $post->ID . '" href', $link);
}
Hello,
I cannot get the figcaptions to display at the Lightbox. I enter image descriptions using the included Gutenberg Gallery Block.
Any suggestions?
Thank you
]]>Hi. The plugin is nice and I want to use it. But the plugin js,css files are loading on all pages. It’s not necessary.
How can I make it only load on pages with a wordpress gallery? If there is a gallery in posts, load the plugin js,css files? thanks
]]>Sorry if the maintainer sees this twice.
When using the default “Twenty Twenty-Two” theme simplelightbox doesn’t work. When an image is clicked, the browser opens the media file instead of the lightbox.
I tried this on a vanilla install of the latest WP, PHP 7.8, only simplelightbox installed. I placed one image on the post with the link to “Media File.”
I also tried the popular Frost theme, and simplelightbox doesn’t appear to work with it. But it does work with the Twenty Twenty theme on the same install.
Unfortunately, I don’t know enough to fix the problem, just point out that in future themes, there might be an issue.
]]>При размещении стандартной галереи и активации плагина в web.dev наблюдается ошибка <dl>’s do not contain only properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements.
Ругается на один и тот же класс.
<dl>’s do not contain only properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements.
Размещая изображения поштучно, ошибка извещает, но с большим количеством изображении затруднительно работать таким способом.
Hi,
when I installed the plugin I’ve receiving an error:
Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in /Users/joan/Local Sites/xgc2/app/public/wp-content/mu-plugins/local-by-flywheel-live-link-helper.php on line 155
]]>Hi ?? I love your lightbox plugin ??
I noticed a small error: The data-opacity-target on the sl-overlay element does not match with the overlay opacity setting in the plugin settings and therefore the animation does always end at an opacity of 0.7 and not at the defined value. After the animation has finished the correct opacity is used. But this causes a jump in the opacity levels which does not look good.
]]>Webp do not working. Can you improve?
]]>Hi, I am trying to get the “caption” for the wordpress galleries to display with your plugin. I was able to get alt tag to work but I can’t figure out the Caption. Here is where the caption is on the backend for the images in the wordpress gallery – https://i.snipboard.io/DTbqYf.jpg
On the frontend in the inspector it adds a class “wp-caption-text” and adds the captions below the images – https://i.snipboard.io/p3xWcL.jpg but I don’t know how to pull that information into the lightbox.
Let me know,
Thanks!
]]>Hello
How can I add a watermark in the images shown in my galleries ?
Thanks in advance for an answer easy to understand for a (french) beginner on wordpress. ??
Can you implement zooming with the mouse wheel? I know that now you have click for zooming and pinching, but it would make it perfect if I could roll my mouse wheel and have the image zoom.
Thank you for your beautiful work.
Hallo André,
Wenn ich mehrere Galerien auf einer Seite einfüge, werden diese in der Lightbox immer gruppiert – allerdings nutze ich das Beaver Builder Page Builder Plugin und nicht Gutenberg und die Standard Gallerien.
Ich denke, das Problem ist, dass alle meine Galerien das gleiche rel-Attribut erhalten. Denkst du es ist m?glich dein Plugin für meinen Verwendungszweck zu brauchen? Ich habe die Option Group Images schon auf false gestellt.
Hab vielen Dank im Voraus – das Plugin gef?llt mir sonst wirklich sehr!
]]>Hello,
I have problem with grouping images into some groups.
Simply it is not working the way I do it.
Here is some code i use.
<div id="container" class="isotope gallery">
<a class="grid-item" data-filter="city" href="someimage.png" rel="rel1">
<img src="someimage.png" alt="" title="" /></a>
<a class="grid-item" data-filter="cats" href="someimage.png" rel="rel1">
<img src="someimage.png" alt="" title="Beautiful Image" /></a>
</div>
So as you can see there is attribute rel in a tag.
In plugin setting I have changed grouping to true from default false.
What am I doing wrong? Could you please help me?
]]>Hi Andre,
Any idea why the image index / close button / caption are not being displayed? I did reinstall the plugin / reset the settings to default (dropped the ar_sl_% option_name rows). Any link to RTFM is also appreciated! (I didn’t find any matches here, your docu or on the GitHub repro though)
Not sure if it is relevant .. the image was scaled up with default settings, I think I had to reduce the max zoom for it to display the native resolution? Not sure anymore … Also, when I changed the navigation arrows to “< pref & next >” the prev and next were below the <, the next was cut off.
Simplelightbox: 2.7.0
WordPress: 5.6.1
Genesis: 3.3.3
PHP: 7.3.27
Chrome: Version 88.0.4324.150 (Official Build) (64-bit)
Same issue with legacy version / on edge.
Thanks in advance for any help troubleshooting this!
Valentin
P.S.
Feature request if you feel like it, hide the pref / next arrows at the first / last item when loop is disabled.
Hello, nice plugin!
Is it possible to show the wp description of the image when it’s clicked?
Right now, nothing is displayed..
Hello,
I love your plugin. Very useful options but I uninstalled it recenty because i stopped using jquery and now my site is faster.
Any chance to make it no jquery dependant in future releases?
]]>Simplelightbox does all I want for my WordPress sites, except for images within Advanced Custom Fields (ACF).
This problem was mentioned 3 years ago but got no answer.
Please, can you help?
Hi,
Could you consider using passive listeners to improve scrolling performance?
This is the feedback I get when running a site with the plugin through PageSpeed Insights referring to /wp-content/plugins/simplelightbox/dist/simple-lightbox.min.js line 0:
Does not use passive listeners to improve scrolling performance
Consider marking your touch and wheel event listeners aspassive
to improve your page’s scroll performance.
Thanks!
Kenneth
]]>