Thanks, I check this plugin out and may use it at some time, but downloading is not the problem. I would like to create a clickable link to a file (e.g. a doc file that contains an article) to include on a page, just like creating a link to a url. Thanks
<a href="https://mywebsite.com/folderiputstuffin/file.doc">Click Here to Download</a>
like that?
Do you want to do it in a post/page or within your template?
That code above will work if you switch your editor over to html.
It can be done from visual editor too, but you don’t type the code, you just type Click Here to Download (or whatever), then highlight the text, click the link (looks like a chain) button, and type in url to your file….
Thanks, but that doesn’t work because I’m trying to link to files on my computer that don’t exist on a url. I was able to do it with iWeb very easily with a widget similar to the link icon in the visual editor. Any more ideas?
My problem is, I don’t know anything about theinner workings of wordpress and I don’t know what folder “folderiputmystuffin” to upload my docs to. On my cPanel file manager, I can see so many directories that might be the right one…but they’re all so much the same, I don’t know which is which.
Create a new directory at the root of your blog to hold your documents. Upload them to that directory every time, and whenever you post a link, the the only thing you need to change is the file name.
Example: //www.yoursite.com/mydocs/
Use your ftp client to place your files in the “mydocs” directory.
Your download links will look like this:
<a href="https://www.yoursite.com/mydocs/filename.extension">Click Here To Download This File</a>
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘How to Link to files’ is closed to new replies.