Skip to content

Lightbox + Photon bug #6103

@joefulgham

Description

@joefulgham

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 ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibility/3rd-partyIndicates a compatibility problem with a 3rd-party plugin or theme.status/mergedIndicates when a Pull Request has been merged to a Release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions