Adding a PDF View / Download button to WordPress

This tutorial walks you through how to add a PDF View / Download button directly to your Wordpress website.

To add a parallax background using the Visual builder, create a section with however many rows / columns you’d like.

Within that section click the toggle, this will show the settings for that entire section.

In here scroll down to the background settings on the first page and add a background image. You can do this by clicking the portrait / image section shown in the screenshot below.

Once you’ve added your background simply scroll down slightly as you’ll see ‘Use Parallax Effect’ click this and it’s as simple as that!

We hope this provides you with an idea of how to get your WordPress website set up with parallax backgrounds using the Divi theme. We’d appreciate a share or any comments if you found this useful, thanks!

Adding a PDF View / Download button to WordPress:

Adding a PDF button to WordPress is super simple. You can add it to display the PDF directly from your website’s media Library or for the user to be able to download the PDF.

How you add it to your website will depend entirely on the type of setup that you have. For buttons that are viewing the PDF this will be slightly easier.

Viewing a PDF:
To create a button to view the pdf you simply need to upload it to your media library. You can do this by clicking Media in the sidebar and then uploading your PDF directly within here. Once it’s uploaded you’ll need to get the URL. You can do this by clicking the PDF within the media library and copying the URL which you will need to then add to the button link.

After this, if you visit the page that you’re looking to add the button to you’ll need to decide how you’re going to add the button if your site uses a page builder you can use the button module, if you’re coding it then the button may look something like this:

<button> <a href=”url-of-pdf”>Download PDF </a> </button>

In the above example we’ve identified the button, added the link to the PDF and then the relevant button text. When a website user clicks on this they will be able to see the pdf as it’ll be served from the WordPress media library directly.

If you’d like to learn more about creating WordPress buttons take a look at our tutorial here.

Downloading a PDF:

To set a button to download a PDF directly when clicked the easiest route is to use the html 5 download attribute. This would look something like this.

Tech Typed
Tech Typed
Articles: 186

Leave a Reply

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