Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Easily Add a Download Link in WordPress (3 Ways)

Do you want to learn how to add a download link in WordPress for your PDFs and other files?

Adding a download link to WordPress makes it easy for your readers to download guides, videos, images, and even paid products.

In this article, we’ll show you how to add a download link to your WordPress site, step by step.

How to easily add a download link in WordPress (2 ways)

Why Add a Download Link for Files in WordPress?

By adding a download link for your WordPress files, you make it easy for your visitors to download eBooks, videos, images, plugins, and other media and documents you upload to your WordPress blog.

This makes it easy to create exclusive content for your visitors to help build your email list.

You can also offer some of these downloads as a bonus for your most valued readers to help improve your relationship and strengthen your brand.

Plus, you can even create a simple membership site, where you can put your members-only guides and other content behind a paywall.

That being said, let’s show you how to easily add a download link in WordPress. Simply use the quick links below to jump straight to the method you want to use.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

The easiest way to add a download link in WordPress is by using the Gutenberg block editor.

First, you’ll need to open up a WordPress post or page where you want to add a download link from the admin sidebar.

Once you’re there, click the ‘Add Block’ (+) button at the top left corner of the screen to open the block menu.

From here, add the ‘File’ block to the block editor.

Add the file block

After that, you can upload a file from the computer by clicking the ‘Upload’ button.

You can also choose a file that you’ve already uploaded by clicking on the ‘Media Library’ button.

Upload file or select from media library

Once you add the file, it will automatically display the download URL and users can easily click on it to download it.

To change the name of the link, simply click on the text and edit it. 

Edit download link text

There are different display options that you can customize in the block panel on the right depending on the type of file you added.

For example, if you upload a PDF file, then you can choose for the link to go directly to the media file, or open it on a separate attachment page.

You can also make the download open in a new tab by clicking the toggle.

Below that, you can also add a download button next to your link by clicking the ‘Show download button’ toggle.

Change download link display settings

Once you’re finished making changes, click the ‘Save’ or ‘Publish’ button to make your download link live.

Now, you can visit your WordPress website to see your download link in action.

Download link plus button example

Add a Simple Download Link by Uploading Files to Media Library

Another way to add a download link to a file is to first upload it to your media library.

To do this, visit the Media » Add New page from the WordPress admin sidebar and then upload your file.

Add new media files

Next, you need to click on the file to open it.

Then, copy the URL in the ‘File URL’ box.

Copy file URL

Now, you can navigate to the post or page where you want to add the download link.

Then, add some text, click the ‘Link’ icon, and paste the URL you just copied into the box.

Add link for download

You can also make the link open in the new tab by clicking the ‘Open in new tab’ toggle.

The right-hand side of the screen lets you change the link color, size, typography, and more.

Edit download link display settings

When you’re finished making changes, click the ‘Update’ or ‘Publish’ button to make your download link live.

Now, you can go to your WordPress site to see your new download link.

Download link example

Another way you can add download links to your site is by using the OptinMonster plugin.

It’s one of the best popup plugins and best lead generation plugins for WordPress used by over 1.2 million websites.

OptinMonster

It has a unique technology that lets you create on-click popups that open when a user clicks a link. These can be used to deliver content upgrades, digital downloads, email-required downloads, and more. 

This style of popup relies on the powerful Zeigarnik effect. This psychological principle states that users who start an action are more likely to finish it.

Since your users are already showing interest, they’re more likely to use your download or enter their email addresses. 

Link click popup download example

To learn more, see our guide on how to open a WordPress popup form on click of a link or image.

You can also manage and track your file downloads to see what your users click on and download the most.

To learn more, see our guide on how to manage, track, and control file downloads in WordPress.

If you’re looking to sell downloadable files on your WordPress site or looking to create a members-only area, then you have a few different options.

For creating a membership site or selling courses online, you can use the MemberPress plugin. It’s the best WordPress membership plugin that lets you set up membership levels, add members-only protected downloads, create courses, add lessons, and more.

Alternatively, you can use Easy Digital Downloads which is the best WordPress plugin for selling premium digital downloads like eBooks, music, software, and more.

It comes with recurring subscriptions, licensing support, protected downloads, and more. This is what we use to sell our plugins.

To get started, use the SiteGround EDD hosting plan which makes setup easy, or download the plugin from Easy Digital Downloads website.

Easy Digital Downloads

After that, you can set up downloads as individual products that people can purchase, or download for free in exchange for an email address.

Simply visit the  Downloads » Add New page from your WordPress admin panel.

Go to Downloads and click on Add New

This will open the content editor where you can start by adding a name for the file that you’re about to upload.

After that, you can also add tags, categories, and images for the uploaded file.

Add tags, categories, and images for the downloadable product

Now you have to scroll down to the ‘Download Prices’ section.

From here, you can simply type the price for the downloadable product that you want to sell on your website.

Type the price for the downloadable products

Next, scroll down to the ‘Download files’ section and add a name for the file that you want to upload.

After that, click on the link button in the ‘File URL’ field to launch the WordPress media library.

Add file URL

From here, you can select files for download from the media library or your computer.

Once you’ve done that, don’t forget to click the ‘Publish’ button to store your settings.

For more detailed instructions, you may want to see our beginner’s guide on how to sell Excel or Google Spreadsheets in WordPress.

Upload excel file from media library

We hope this article helped you learn how to add a download link in WordPress. You may also want to see our guide on how to register a domain name and our expert picks of the most popular WordPress themes for your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

8 CommentsLeave a Reply

  1. Your How-tos are awesome. Everytime I have a question, you have the answer! I greatly appreciate that you share all your WP knowledge on your site!
    Thank you!!!

  2. That was great, I could arrange my free downloads easily. THANK YOU
    If I may have one question here? Is it possible to have same download links after payments are done? I mean not for free downloads but for paid downloads?
    Thank you

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.