Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

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

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

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 will show you how to easily 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 and 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 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 must 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 have 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 the 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 and click the ‘Link’ icon from the block toolbar. After that, 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

Alternative: If you want more customization and control over your PDFs and download links, we recommend using the WP PDF Embedder plugin. For more details, see our guide on how to add a PDF viewer in WordPress.

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

It is the best WordPress popup plugin on the market and is used by over 1.2 million websites.

For more details, see our complete OptinMonster review

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, 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 are looking to sell downloadable files on your WordPress site or want 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

Bonus: Build an Email List With File Downloads

You can use download links to build an email list by requiring an email address from the user before allowing file downloads. It will help grow your email list and generate more leads by letting you send marketing campaign emails to users.

You can easily require an email address for file downloads using OptinMonster which is the best lead generation tool on the market.

Upon activation, all you have to do is visit the OptinMonster » Templates page, choose a template that you like, and provide a name for your campaign.

The plugin offers numerous templates for file downloads and we are using an ebook download template for this tutorial.

Choose a template in OptinMonster for file downloads

Once you do that, the template will open up in OptinMonster’s builder where you must edit the text and add a download link for the file.

After that, you can switch to the ‘Integrations’ tab from the top to connect the popup to your email marketing services.

Connect your popup to the email marketing service

Then, simply switch to the ‘Publish’ tab and make your popup live.

Now your users will have to provide an email address before they can download the file that you are offering in the popup. For more detailed instructions, see our tutorial on how to require an email address to download a file in WordPress.

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.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

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

9 CommentsLeave a Reply

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Karla says

    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!!!

  3. Pirooz Rahimi says

    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.