Ozzy Rodriguez
Forum Replies Created
-
Hi @wpfan1000,
There isn’t a way to do that with the WP Featherlight plugin.
Forum: Plugins
In reply to: [WP Featherlight - A Simple jQuery Lightbox] Preload LightboxHi @rurban23,
WP Featherlight doesn’t have any effect on the loading of the base image or the LCP on the page, so the plugin isn’t causing your LCP to be higher.
Since the issue is the image itself, you may want to display a proper size, or at least add the size that’s being displayed on the page as a thumbnail size and use it in your theme.
https://codex.www.ads-software.com/Post_Thumbnails#Add_New_Post_Thumbnail_Sizes
I didn’t know you were looking for the HTML for it. If you wrap your images in a div or something with a class of
gallery
, it should find them.Here is the spot in the code where it’s looking for it: https://github.com/cipherdevgroup/wp-featherlight/blob/develop/assets/plugin/js/wpFeatherlight.js#L62
By single images, I mean images that are not in a gallery.
An example of a gallery would be images in a gallery Gutenberg block. WP Featherlight isn’t going to handle images like a gallery just because they’re next to each other.
If another lightbox plugin does works the way you’d like, I’d use that one for this project. WP Featherlight isn’t the best plugin for all use cases, and it seems like this may be one of them.
If they’re single images, the plugin doesn’t do this on purpose and we’re not going to be adding an option to make it happen as it will break basic functionality that we really like.
If you’re saying you don’t see the previous and next arrows on a gallery, please post a link to a page where we can see it happening.
Very weird.
Can you provide a link to an example? A product page with a thumbnail that also has a single image as well as a gallery somewhere on the page would be perfect.
That works automatically when you use it with a gallery, but not with single images.
I don’t think that’s doable with the plugin since it automatically puts gallery items together.
Sorry.
Forum: Plugins
In reply to: [WP Featherlight - A Simple jQuery Lightbox] Html imagesHi @morebettersg,
Can you give an example of what issue you’re having?
Since the plugin works on a base theme, then I would check with the theme author and let them know what’s going on.
I’d hate to give you advice that would further break something with the theme you’re using.
Can you test on twentytwenty or another standard WordPress theme?
Forum: Plugins
In reply to: [WP Featherlight - A Simple jQuery Lightbox] Custom gallery navigationYou can try adding a class to the wrapping div of ‘gallery’ and see if that works. If that doesn’t, you can try and follow the documentation for the actual Featherlight script at https://github.com/noelboss/featherlight/#usage
Hi @annatuulia,
Do you have any more information about this? Because of what the plugin does, it’s highly unlikely that the plugin was a cause of a hack.
We’ll reach out to your host and see if they have any more information.
Hi Caroline,
The plugin is made to look for images inside the content area. I can’t test it on your environment, but if you add a class of “gallery” to the current “pics” div, it may work as you’d like.
Thanks for letting us know.
We’ll take a look and fix what is causing that to happen.