• Resolved useymind

    (@useymind)


    Congratulations on the program. Really very light and useful. 5 stars 🙂

    One question – I recently had to update the platform WordPress to version 6.5 to fix some problems with elementor and now I’m at a new Lightbox.. Expand on click… No longer managed to make the display of photos work properly !!! That is..

    Now when I click on a photo it sends me forward to the file.. file link.. Media links.. (page link photo) I have to go back with the browser and when I go back… I see your plugin correctly open with the photo. I close it and I’m on the right page.

    I couldn’t prevent this and go back to just using your beautiful plugin. This weird thing is just my problem?? I also have W3 total cache that talks about Lightbox option… but not active.

    Ps. at the moment I reset everything and went back to version 6.3.5 of WP. Now I have the problem again with Elementor..

    Thanking you in advance..

    • This topic was modified 6 months, 2 weeks ago by useymind.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    There are several things to check here:

    1. Disable all kind of “optimizer” and “caching” and check again, if anything changes.
    2. Check the HTML source of the affected pages if the image links contain attributes starting with data-lbwps-. This is added by the backend code to tell the frontend which images should open in the lightbox. If this is missing completely, then there may be a conflict with my plugin due to some caching plugin which does handle output buffering properly.
    3. If you use any kind of “JavaScript optimizer” which puts all JavaScript into one single file – disable that and check again. PhotoSwipe 5 will not work when using “optimized” JavaScript code since it uses JavaScript modules which must not be “optimized” otherwise the code does not work any longer. Lightbox with PhotoSwipe is already optimized using minified code and styles to provide only very small overhead.
    • This reply was modified 6 months, 2 weeks ago by Arno Welzel. Reason: Typo
    Plugin Author Arno Welzel

    (@awelzel)

    And for completeness – Elementor galleries itself work fine, as you can see here:

    https://wordpress-demo.arnowelzel.de/example-for-elementor/

    Thread Starter useymind

    (@useymind)

    Hi, thank you very much for the answer and suggestions. I have never used that elementor function.

    Ok, now I can no longer play with the website also because I do not have a place for staging.

    However.. in a little while.. I will try to update everything again… To know.. if I put the file JS in box – Never minify the following JS files: ..it might work with caching your plugin? ..if the problem is that..?

    Thanks in Advance… 🙂

    Plugin Author Arno Welzel

    (@awelzel)

    It is not about “minifying”. All scripts in my plugin are already minified and this is the case with nearly existing serious WordPress plugin. Also all Elementor scripts are already minified.

    Plugins like W3 Total Cache promise all kinds of “optimization” but most of the time the only thing you need is a decent web hosting and if possible an object cache like https://wordpress.org/plugins/redis-cache/. Also https://wordpress.org/plugins/cachify/ is very effective, since it will just store every page of your site as static HTML file, so it is possible to get response times down to less than 0,1 seconds depending on your server.

    Also keep in mind that with current protocols like HTTP/2 it does not matter of your site needs 5, 10 or 50 requests to load initially. All requests from onw client go over one single connection anyway and browsers cache many things locally as well – so visitors getting to your website the second time, won’t have to wait again for everything but only the update content will be transferred.

    So again: turn off every “optimization” – completely! Then test, if your website works.

    Edit: the point is – please do not change the way, how WordPress itself delivers the content. All styles, scripts etc. added by plugins must be served as they are. All kind of “optimization” is a potential source of errors.

    • This reply was modified 6 months, 2 weeks ago by Arno Welzel.
    Thread Starter useymind

    (@useymind)

    Hello, thanks again for the time allowed..

    Already for some time my provider has provided me with a configuration file for perfect communication/configuration with W3 Total Cache an also with their Redis..

    Thank you and maybe when I try to update everything again maybe I resent. Thanks again and congratulations for your work.

    ..from Italy..

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Worpress 6.5 – Elementor 29 – No/Yes lightbox P/swipe.’ is closed to new replies.