Lightbox + Photon bug
joefulgham opened this issue · comments
Prerequisites
- I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- The issue still exists against the latest stable version of Elementor.
Description
Elementor's Lightbox code doesn't recognize images with ?ssl=1 at the end of their URLs as images, so the Lightbox doesn't trigger on links to them.
Jetpack's Photon (CDN image hosting) automatically adds ?ssl=1 of images, so when Jetpack is enabled (on an SSL site, I suppose) the Lightbox no longer functions.
Steps to reproduce
Enable Jetpack & its Photon option.
Create Image element with Lightbox enabled on an SSL site.
Lightbox works fine in the Elementor editor (where ?ssl=1 isn't added by Jetpack) but fails on the live site, where ?ssl=1 is added.
Disabling the Photon option removes the ?ssl=1 and Lightbox functionality works again.
Isolating the problem
- This bug happens with only Elementor plugin active (and Elementor Pro).
- This bug happens with a default WordPress theme active.
- I can reproduce this bug consistently using the steps above.
Environment
System Info
``` N/A ```I've found a similar bug with another Lightbox plugin, plus a solution here:
https://wordpress.org/support/topic/url-with-ssl1-fancybox-doesnt-open/