Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML <a> download Attribute does not work in combination with simple-lightbox #904

Open
webmark487 opened this issue Sep 13, 2021 · 1 comment

Comments

@webmark487
Copy link

webmark487 commented Sep 13, 2021

Description of Problem

When I use links like <a href="/images/myw3schoolsimage.jpg" **download="**w3logo">, they still open in Simple Lightbox and the files are not downloaded directly.

So the "HTML download Attribute" does not have any effect here.

You can see that on https://neu.freirad.at/presse/logos-zum-download/, where the source code of the Downloadtest-link is:

<a href="/wp-content/uploads/2021/09/FREIRAD-Logo-1c-schwarz-pos-klein1-768x256.jpg" download="logo1" data-slb-active="1" data-slb-asset="749846469" data-slb-internal="0" data-slb-group="1320">Downloadtest</a>

Any built in solution or workaround, that you could think of?

Details

Thx in advance and best regards
Markus

@archetyped
Copy link
Owner

archetyped commented Sep 15, 2021

Hi, support for ignoring links with the download attribute has been added to the to-do list.

In the meantime, you can exclude these links from opening in the lightbox using the [slb_exclude] shortcode (documentation).

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants