• I’m using the latest version of the Twenty Ten theme (by Matt Thomas). I have a thumbnail that I’d like the user to click on and then display a PDF.
    (I’ve searched the forums, but can’t seem to find a way to do this)

    Thanks for any help, much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • In the image settings, you can select a link to visit when it is clicked. Type (or paste) the link to the PDF (yourdomain.com/wp-content/uploads/year/month/name.pdf) and press Insert into Post.

    Hope this makes sense! ??

    Thread Starter SBiggs

    (@sbiggs)

    Thanks for the reply….
    Here’s what I tried:
    I uploaded the picture & inserted it into the Page.
    I uploaded the PDF using the Add Media button.
    The PDF resides in the /yourdomain.com/test/wp-content/uploads/2011/02/test.pdf

    When I Edit the image thumbnail, I put the link into Link URL associated with the thumbnail, I click UPDATE. I then click UPDATE in the Publish area. If I then Edit the image and have a look at the Link URL, WordPress has put it back to https://yourdomain.com/test/?attachment_id=220 and my change to the Link URL is lost.

    Weird. Try this:

    1. Do what you said:

    I uploaded the picture & inserted it into the Page.
    I uploaded the PDF using the Add Media button.
    When I Edit the image thumbnail, I put the link into Link URL associated with the thumbnail, I click UPDATE.

    2. In the post viewer, press HTML instead the Visual tab at the top right of the text box.

    3. Find the image, and before the <img> add this:

    <a href="https://yourdomain/wp-content/uploads/2011/02/name.pdf" target="_blank">

    4. After the <img> tag there will be an </img> or a />. Add this: </a>

    5. Save the post and open it in your blog & see if it works.

    Thread Starter SBiggs

    (@sbiggs)

    That works! Thanks very much, greatly appreciated!

    That’s OK. You’re welcome.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Thumbnail Image Link To A PDF’ is closed to new replies.