• Hi,

    So I’m concerned how can I let people coming to my page download the photos from the gallery that I place on that page just by one click.
    I tried using “Zip Attachements” plugin, however it didn’t work very well.

    I just would like to place a button, that will allow people coming to this site download the photos from it. It can be done by some plugin or any other way.
    Do you have any ideas?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    No, no plugin is warranted. In text view enter the markup directly. With HTML5 you use the download attribute in an anchor link like so:
    <a href="https://example.com/wp-content/uploads/real-file-name.jpg" download="download-filename-base" class="tu-button">Download</a>

    Style the link’s class “tu-button” like a button and you’re good to go ??

    Prior to HTML5 the download attribute had no value, it was just there by itself and the user gets the regular filename.

Viewing 1 replies (of 1 total)
  • The topic ‘Downloading the content from the page’ is closed to new replies.