Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22694

    Hey gang,

    I want to do something so simple, yet seems so frustrating for some reason. See if this makes sense:

    1) Link on site says ‘Download the Free PDF’

    2) User clicks on link

    3) PDF starts to download (stored on my server somewhere?)

    I’m a noobie – and I know this should be painfully easy. But can’t seem to find an easy solution. Any ideas.

    Thanks much,

    Chris


    Chris Donaldson

    360-383-6376

    (Email address hidden if logged out)

    Join the Reading Renaissance: .

    http://www.facebook.com/brainsarefun

    #116852

    Hi,

    Just do something like this

    <a href="acrobat_file.pdf" target="_blank">Download the Free PDF</a>

    When the user click on the link they will be directed to the PDF file. They can read it online or save it on their computer if they want.

    Regards,

    Ismael

    #116853

    Ismael,

    Thanks for this. Where does the PDF live in my file structure?

    Then – do I insert this location in the target=”_blank” area?

    Let me know – and I appreciate you dealing with a newbie.

    Chris

    #116854

    Hi Chris,

    See: http://www.w3schools.com/tags/att_a_href.asp and http://www.w3schools.com/tags/att_a_target.asp .

    The file will be wherever you have designated uploads and you just upload it like you would any other file from within wordpress. Then you are just linking to that file and using the target attribute to tell the browser to open the link in a new window (which if its a pdf file will initiate a download or open it in the browser if the user has that enabled).

    Regards,

    Devin

    #116855

    Devin,

    Thanks so much – finally starting to crack some basic HTML code. Appreciate it.

    Chris

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Simple Download Functionality’ is closed to new replies.