How to view PDF files in WordPress


Since WordPress 5.8 it is no longer necessary to install any plugin or use an external service to display PDF files directly on your website.

With the file block you have this functionality natively, and active by default.

Even if you search for “PDF” in the block inserter you will be shown the file block.

pdf block

Once the block has been added, just choose the PDF file and it will be displayed with an integrated viewer, of which you can modify settings such as the height, whether it will have a download button for the file, or where the text link will link to.

pdf block preview and settings

And that’s it. You will be able to fully preview the PDF from your posts and pages.

How useful was this post?

Click on a smiley to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top