How to Add a PDF Download to Posts in WordPress
Adding a PDF download to your website is an excellent way of sharing your website content with your visitors. It allows them to save a copy of the material to review, use, or print at their convenience.
How to add a PDF file as a media
To add a PDF file as Media:
Following the steps below is the most straightforward method because it works without installing any plugin. You can accomplish this through your WordPress Dashboard.
- Log in to your WordPress Dashboard. To access your WordPress admin panel, go to:
http://example.com/wp-admin
Be sure to replace example.com with your actual domain name.
- In the left-side menu, hover over to Media and click Add New.
-
Drag and drop your PDF file or click the Select Files button to upload it.
- Select the .pdf from your local computer, and the PDF file will be uploaded to your website.
How to add a PDF file to a Post
After uploading the .pdf file, you can add them to your posts using the Block Editor.
Note: With the new WordPress Block Editor, you can directly add a document/file to your post.
To add a PDF file to a Post:
- Hover over to the Post in the left-hand side menu and click Add New in the sub-menu.
- Alternatively, click on the '+ New' icon in the header and select Post.
- Alternatively, click on the '+ New' icon in the header and select Post.
- On the Block Editor, click '+ New,' and a drag-and-drop interface will appear to add and edit content. The content is formatted in blocks that can quickly move around the page.
- Use the search bar to locate the File block quickly, or scroll down to the Media category.
- Click the File block, and it will automatically be added to the content field.
- Click Upload or select Media Library to select the PDF file you want to add to the post.
- Enter a title and edit the file name. You can show a download button and even change the button text and link it to the PDF file or an attachment page.
- Click Publish.
- Congratulations! You successfully added your .pdf file to your WordPress website. This file can now be downloaded by your website visitors at their convenience.