Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25383
    ron greiner
    Guest

    I have uploaded the files to the website, but how do I link a file to a button. can I then change the file weekly?

    #25394
    Jesse Owens
    Keymaster

    Hello Ron-
    You can link to a file download in much the same way as any other link, depending on the type of file you’re linking to.
    For example, links to ZIP files will download automatically, while links to image files and PDF’s may open natively in the browser. In order to force the download, add the word “download” to your HTML link. Here’s how to do that:

    Highlight your button, and switch over to the text editor. Your link will look similar to the following:

    <button><a href="/wp-content/uploads/your-download-file.pdf">Download Now!</a></button

    Inside the <a> element, add the word download, like so:

    <button><a href="/wp-content/uploads/your-download-file.pdf" download>Download Now!</a></button
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘need to set up a button to go to a file.’ is closed to new replies.