How to Add a PDF Download to Posts in WordPress | HostGator Support
  1. Knowledge Base
  2. >
  3. Results
  4. >
  5. How to Add a PDF Download to Posts in WordPress

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.

  1. 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.

  2. In the left-side menu, hover over to Media and click Add New.

    HostGator WordPress Media Add New

  3. Drag and drop your PDF file or click the Select Files button to upload it.

    HostGator WordPress Media Upload

  4. 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:

  1. Hover over to the Post in the left-hand side menu and click Add New in the sub-menu.

    HostGator WordPress Add New Post

    • Alternatively, click on the '+ New' icon in the header and select Post.

      HostGator WordPress Add New Post

  2. 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.

    HostGator WordPress Add Block

  3. Use the search bar to locate the File block quickly, or scroll down to the Media category.

    HostGator WordPress Media File Block

  4. Click the File block, and it will automatically be added to the content field.

    HostGator WordPress Media File Block

  5. Click Upload or select Media Library to select the PDF file you want to add to the post.

    HostGator WordPress Media File Block

  6. 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.

    HostGator WordPress Media File Block

  7. Click Publish.
  8. Congratulations! You successfully added your .pdf file to your WordPress website. This file can now be downloaded by your website visitors at their convenience.

    HostGator WordPress Media File Block

 

Additional Resources: