Tagged: Download functionality
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.
Join the Reading Renaissance: .
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.
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.
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).
The topic ‘Simple Download Functionality’ is closed to new replies.