There are several ways to add a download link in WordPress post, this article demonstrating 3 simple ways to add a download link in WordPress.
A Hyperlink As A Download Link
A Hyperlink can be used as a download link in a WordPress post. Steps to create such a hyperlink are given below.
Step 1: Open your post in Gutenberg Editor.
Dashboard >> Post >> All Post >> Click On Your Post.
Step 2: Add Anchor Text In Post.
Add your anchor text in post where you want to provide a download link for readers. If you already have your anchor text in the post then you can jump direct to Step 3.
Step 3: Select Your Anchor Text.
Whenever you select the anchor text, Gutenberg Editor provides add link option (see the image), where you have to past the link of downloadable file, but the question is how can I find link of downloadable file? Simple answer of this question is first you have to add your downloadable file in media library of WordPress. WordPress having very easy steps to add files in media library, here are the steps.
To Add A File In Media Library
Step 1: Click On Dashboard >> Media >> Add New
Clicking on Add New option headed you to upload Media Screen where you can either drop or select you file form your computer. No matter which option you choose, both the options will upload your file to WordPress media library.
Step 2: Click On Dashboard >> Media >> Library.
Clicking on Library option headed you to WordPress Media Library Screen. Where you will get your all uploaded files.
Step 3: Click On Your File.
As you click on your file in media library, an Attachment Details screen will appear. Where you will get copy link option which is actually path of your file in WordPress media library.
Step 4: Copy Link.
Just copy the path given in Copy Link option.
Step 5: Paste the Link.
Step 5.1 Select Anchor Text.
Step 5.2 Click On Add Link.
Step 5.3 Paste Your File Link.
Update your post and you can test the result.
How Do I Create A Download Link For A .pdf File?
There are two methods to add download button for any file in WordPress Page. A step by step approach is given below.
Using File Block.
You can find File Block under Common Blocks category of Gutenberg Editor. File Block provides two options, you can either upload or pick your file form media library. Here are the steps.
Step 1: Inset File Block
Step 1.1 Click on + sign
Step 1.2 select Common Blocks category.
Step 1.3 Click On File Block.
File Block Insertion.
You can select your file using upload option where your select file will be uploaded to WordPress media library from your computer or you can pick your file form media library if you have already added it to WordPress Media Library.
Step 2: Select Your File.
How To Add Download Button In WordPress Page?
You can also make use of a button as a download link of your file. Here are the steps.
Step 1: Adding a Button Block.
Step 1.1 Click on + sign [Add block].
Step 1.2 Select Layout Elements Category.
Step 1.3 Click On Buttons Block.
A button will be inserted to the post without any caption (name).
Step 2: Name Your Button.
When you will get the button inserted in the post, initially it has no name, so just give a name to that button like Download Me.
Step 3: Select The Button.
Gutenberg Editor provides an add link option (Ctrl+k) when you select the Button.
Step 4: Paste Your File Link.
Now you have to paste you file link [How To Get File Link] in add link option and press Enter. Now this newly inserted button becomes a download button for your file.
These are the ways to add a download link in WordPress.