Support » Plugin: WordPress Button Plugin MaxButtons » Download a file on click

  • Resolved crldev

    (@crldev)


    I want the button to trigger the download of a file but I cannot find a way to add “download” within the href declaration.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    You can link directly to the URL of what you want downloaded, but it’s the browser that decides how it’s presented to the user ( aka open file in browser / download etc ).

    Just put the file URL in the URL field (button editor)

    Thread Starter crldev

    (@crldev)

    If I want to force a browser download I define it as –

    Downlaod file

    What I was hoping for a way of adding items to the declaration such as alt, title and download.

    Thanks,

    Rob

    Plugin Author Bas Schuiling

    (@basszje)

    I don’t quite follow. In the button editor you can edit most aspects of the button such as text. Button Tooltip field is the link title (on hover), alts are only for images.

    Only the server, not the webpage, can force a browser download. And even that is quite limited these days.

    Thread Starter crldev

    (@crldev)

    OK, let’s leave it there. I use the download parameter within the a declaration all the time and it forces the browser to download the file, whatever the browser. See this –

    https://www.w3schools.com/TAGS/att_a_download.asp

    If you are not familiar with this, then let’s leave this discussion here. I want the facility to add this option to the button declaration.

    • This reply was modified 5 months, 1 week ago by crldev.
    Plugin Author Bas Schuiling

    (@basszje)

    Aha a clear description goes a long way, thanks. I was indeed not aware of this tag, but it looks interesting so I’ve put it on our todo list to look into this.

    Plugin Author Bas Schuiling

    (@basszje)

    Good news! Version 8.5 now supports the download tag.

    Thread Starter crldev

    (@crldev)

    Hi Bas,
    That is great news and impressive that you have responded so quickly.
    Many thanks,
    Rob

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.