How to Upload a PDF to WordPress

How to Upload a PDF to WordPress (Simple Guide)

Looking for a simple, step-by-step guide for how to upload a PDF to WordPress?

There are many reasons why you might need to upload a PDF to WordPress, but normally it’s because you want your visitors to be able to download it. Whatever your reason is, we’ll walk you step-by-step through how to add or upload a PDF to your site.

As a bonus, we’ll show you how you can track how many of your visitors are clicking on your PDF link to download it.

Walkthrough: How To Upload a PDF to WordPress

MonsterInsights is the best WordPress Analytics plugin. Get it for free!

Let’s dive in to our tutorial for adding a PDF to your site.

Step 1: Upload Your PDF to the Media Library

First, open your WordPress admin and hover over Media, then click Add New:

Add new media library

Now, you can choose to either drag your PDF file into the box, or click the Select Files button to choose the file from your computer:

Upload PDF to WordPress

You’ll know the upload is complete when you see your file below the upload box:

How to upload a PDF to wordpress

Step 2: Embed Your PDF in a Page or Post

Now that your PDF is added to your media library, you can embed it wherever you wanted it to go on your site. Whether you’re adding it to a page or post, it’s the same instructions.

Did you want to just link to your PDF instead of embed it? You can jump to our instructions for linking to your PDF file.

To get started, open the page or post you want your PDF file to be on. Navigate to the spot where you want it, then click the Plus icon or type a backslash “/” to choose a block:

Add a block to upload PDF to WordPress

Then, search for and choose the File block:

Add file block to add PDF to WordPress

Now, you’ll have the option of either uploading your file here or choosing it from your media library. We already uploaded it, so we’ll choose it from our library:

Add WordPress file from media library

In the future, if you want to add your PDF to the library right here, you definitely can by clicking the Upload button.

Choose your PDF and click Select:

Choose PDF to Add to WordPress

Your PDF will appear on your page, and you’ll have some options for how you want it to appear. If you were looking to embed your PDF in WordPress, you can turn on the Show inline embed toggle, and choose how many pixels tall you want your embed to be.

WordPress PDF upload options

Also in the sidebar, you can choose if you want the PDF to open in a new tab, where the link should go, and if there should be a Download button.

If you want to just create a text link or a button that links to your PDF, here’s how to do that.

Head back to your Media library and click on your PDF. On the right side, you’ll see the File URL. This is the URL you can link to anywhere on your WordPress site to open your PDF.

WordPress file URL

You can also search for your PDF any time you’re creating a link on your site.

For example, here we’re creating a button widget for our sidebar that’ll let visitors download the PDF. If you just start typing the name of your file into the URL bar, you should be able to find it and click on it to insert your PDF URL:

Link a button widget to a PDF

That’s our tutorial! You should now have the details you need to add your PDF wherever you want it to go on your WordPress website.

BONUS: Track PDF Downloads Effortlessly

Now that you have a PDF available for download on your site, wouldn’t it be cool if you could see how many of your visitors are downloading it?

You’re in luck! You can quickly and easily track PDF downloads using MonsterInsights, the best Google Analytics plugin for WordPress.

MonsterInsights is the best Google Analytics plugin for WordPress. It allows you to easily connect your WordPress site with Google Analytics so you can view all the data that matters most right in your WordPress dashboard.

MonsterInsights Home Dashboard

Plus, with the click of a button, you can set up sophisticated tracking features such as event tracking, downloads tracking, eCommerce tracking, form tracking, custom dimension tracking, outbound link tracking, media (video) tracking, and more.

All you have to do is install MonsterInsights and the plugin will automatically start tracking your PDF downloads:

Get started with MonsterInsights now!

Want to learn how to track more than your downloads? Check out How to Track Link Clicks in Google Analytics 4 and WordPress.

And don’t forget to follow us on Twitter, Facebook and YouTube for more helpful Google Analytics tutorials and tips.

Want to Try MonsterInsights for Free?

Enter the URL of Your WordPress website to install MonsterInsights Lite.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.