How can I change the button on my Webflow website to start a normal download instead of opening a PDF file?

Published on
September 22, 2023

To change a button on your Webflow website to start a normal download instead of opening a PDF file, you can follow these steps:

  1. Select the button element: In the Designer view, locate the button element you want to change. Click on it to select it.

  2. Change the button text: Double-click on the button to edit the text. Replace the existing text with an appropriate label such as "Download" or "Get File".

  3. Remove PDF link: By default, Webflow converts direct links to PDF files into embedded PDFs. To remove this behavior, click on the link inside the button. In the settings panel under the "Link Settings" section, you'll find a checkbox labeled "Open link in new tab" – uncheck this box.

  4. Add the download attribute: To ensure the button triggers a file download instead of opening a PDF file, you need to add the "download" attribute to the link. To do this, click on the link element and then go to the settings panel. Under the "Attributes" section, click on the "+" button to add a new attribute. Set the attribute name to "download" (lowercase) and leave the value field empty.

  5. Style the button: To make the button visually stand out, you can apply custom styling using Webflow's style panel. You can change the background color, text color, padding, and other CSS properties to match your website's design.

  6. Test the button: Before publishing your changes, it's important to test the button to ensure it functions as intended. You can do this by previewing the site or using the "Preview" button in the Designer. Click on the button to verify that it triggers a file download instead of opening a PDF file.

By following these steps, you can change a button on your Webflow website to start a normal download instead of opening a PDF file. Remember to save and publish your changes to make them live on your website.

Additional Questions:

  1. How do I change the text on a button in Webflow?
  2. Can I customize the style of buttons in Webflow?
  3. What are some best practices for optimizing file downloads on a Webflow website?