elementor / elementor

The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
https://elementor.com/
GNU General Public License v3.0
6.58k stars 1.42k forks source link

Image lightbox - disable the lightbox if href img has a download attribute #5996

Closed titchpitch closed 5 years ago

titchpitch commented 5 years ago

What problem is your feature request going to solve? Please describe. This is not a bug but more a feature enhancement. If I have Elementors image lightbox enabled, anything that is linking to an image opens in the lightbox. Even if the link has a 'download' attribute.

Describe the solution you'd like When a download attribute is there to not open the lightbox but download as intended. <a href="xxx.jpg" download></a>

Describe alternatives you've considered Contacted Elementor Pro support and suggested to open an issue here.

bainternet commented 5 years ago

@titchpitch

You can exclude links from opening in a lightbox by adding the data-elementor-open-lightbox="no" attribute to your link.

sermalefico commented 4 years ago

Please add a custom attribut to image link in Gallery pro widget to disable light box when put link to media option, i would like to use another ligthbox like Fancybox 3. Is imposible to disable lightbox without lose the href link...

savitririshma commented 3 years ago

@titchpitch

You can exclude links from opening in a lightbox by adding the data-elementor-open-lightbox="no" attribute to your link.

2020 based on new documentation, I wrote : data-elementor-open-lightbox|no, download|true but it doesn't work. any suggestion, please?

engrrajonahmed commented 2 months ago

@titchpitch You can exclude links from opening in a lightbox by adding the data-elementor-open-lightbox="no" attribute to your link.

2020 based on new documentation, I wrote : data-elementor-open-lightbox|no, download|true but it doesn't work. any suggestion, please?

@savitririshma You used comma to separate attributes which is incorrect. 1 attribute each line. For example, data-elementor-open-lightbox="no" download|true