Tagged: Masonry Gallery
There is a topic about that already :
https://kriesi.at/support/topic/masonry-gallery-add-link-to-download
with the following code :return '<a href = "'+encodeURIComponent(item.el.find("img").attr("src"))+'">Download</a>';
but I got one small issue with that : the download is the picture that is shown in the lightbox, and thus a resized picture (e.g. 1030×687), when I would like the download link to be the original full size picture.
Is there a way to achieve that?
thanks!
Hey goch!
Thank you for using Enfold.
The lightbox script is using the large thumbnail size found on Settings > Media panel. Adjust the max width and max height to 9999 then regenerate the thumbnails using this plugin: https://wordpress.org/plugins/regenerate-thumbnails/
Cheers!
Ismael
Hi,
I tried the exact same code goch was posting
I see the download Link now, but when I click on it, the URL looks like this
Do I have to change anything to make it work?
And also, how can I make this change using a child theme?
Hi tl_s180,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria