Forums

link to a pdf file within a page (4 posts)

  1. hkenna
    Member
    Posted 7 years ago #

    Hi,

    I am trying to add a link to a pdf file within a page (or post) that will open the pdf file in another window or download the pdf to the visitors desktop. Can't find a solution, I tried searching the forum. Any help appreciated. H.

  2. planetphillip
    Member
    Posted 7 years ago #

    Sorry if I have missed understood your question, but won't a simple:

    <a href="http://www.example.com/test.pdf">Test PDF Link</a>

    If clicked it will open in the browser (if compatible) or right-click and then choose the save option depending on which browser you use.

    hth
    Phillip

  3. pizdin_dim
    Member
    Posted 7 years ago #

    Yes, that should work. Just be sure to specify the actual directory name for the file too: So,


    <a href="http://www.example.com/wp-content/test.pdf">Test PDF Link</a>

    Or

    <a href="http://www.example.com/wp-content/files/test.pdf">Test PDF Link</a>

    Depending on what you nominated as the file uploads directory under Options > Miscellaneous.

  4. hkenna
    Member
    Posted 7 years ago #

    Thanks this worked. Much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags