• 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sorry if I have missed understood your question, but won’t a simple:

    <a href="https://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

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


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

    Or

    <a href="https://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.

    Thread Starter hkenna

    (@hkenna)

    Thanks this worked. Much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘link to a pdf file within a page’ is closed to new replies.