4

Upload and Display a PDF in WordPress

Here is how too upload and display a PDF on your WordPress site.

1. Go to the page you want to add the PDF too. Then click on the Upload/Insert link. Make sure before you do so, select the area on the page where you want the PDF link to go. It will automatically place it there when you are finished.
Word Press Edit Page

2. The Add Media Window will open.
Wordpress Add Media

3. Upload the PDF.

4. Once the PDF has been upload, this new area in the Add Media Window will appear. Give your PDF a name and fill in any other attributes you’d like. Then click “Insert into Post”
WP_AddMedia_2

5. Now you are back on the edit page and now see the link code inserted. Notice the rel=’lightbox’ tag?
WP_Inserted

6. That tag opens up a window image viewer when clicked. That will not display your PDF correctly, so we want to remove it. Then replace it with the code target=_blank. Now when the use clicks on the PDF link, it will open into a new browser window.
WP_AddMedia_Target

7. Now click ‘Publish’ and you are done! Click on ‘View Post’ to see the new page you created and test your link.

Click Here to Leave a Comment Below 4 comments
Sheila - February 20, 2014

“Now click ‘Publish’ and your done!”

Should be …. Now click ‘Publish’ and you’re done!

You need to learn the difference between your and you’re.

Reply
    JM - March 25, 2014

    …the difference between “knowing your sh*te”, and “knowing you’re sh*te”!

    Reply
Sheila - February 20, 2014

Oh, and the images are broken on this page (not showing).

YOU’RE welcome

Reply
Mark Perry - February 28, 2014

All fixed. Thanks for the heads up Sheila!

Reply

Leave a Reply: