How Do I Link WordPress to Webflow?

How Do I Link WordPress to Webflow?

WordPress and Webflow are two popular platforms for building websites. While WordPress is known for its flexibility and vast plugin directory, Webflow offers a more visual and design-focused approach to web development. In this tutorial, we will walk you through the process of linking WordPress to Webflow, allowing you to leverage the strengths of both platforms.

Step 1: Export Your Webflow Site

If you have already built your website using Webflow, the first step is to export your site’s code. To do this, follow these steps:

  1. Login to your Webflow account.
  2. Select the Project that you want to export.
  3. Click on the Publish button in the top-right corner.
  4. In the Publish modal, choose “Folders” as the export method.
  5. Create a new folder on your computer where you want to save your exported site files.
  6. Select this newly created folder as the export location in Webflow.
  7. Click on the “Export” button.

Your Webflow site will now be exported as HTML, CSS, and JavaScript files into the designated folder on your computer.

Step 2: Set Up a Local Development Environment

In order to link WordPress and Webflow together, we need a local development environment where we can work on both platforms simultaneously. Follow these steps:

  1. Install a local server stack, such as XAMPP or MAMP, on your computer.
  2. Create a new folder in the “htdocs” directory of your local server installation.
  3. Rename this folder to something meaningful, like “my-wordpress-site”.
  4. Copy and paste the exported Webflow files into this folder.
  5. If you want to use a custom domain for your local development environment, edit the “hosts” file on your computer to map the desired domain to localhost.

At this point, you should have both your exported Webflow site and an empty WordPress installation in your local development environment.

Step 3: Set Up Your WordPress Site

If you haven’t installed WordPress yet, follow these steps:

  1. Download the latest version of WordPress from WordPress.org.
  2. Create a new database for your WordPress site using phpMyAdmin or any other database management tool provided by your local server stack.
  3. Rename the wp-config-sample.php file in your WordPress installation folder to wp-config.php.
  4. Edit the wp-config.php file and provide the necessary database credentials (database name, username, password).
  5. In a web browser, navigate to “localhost/your-wordpress-site-folder-name/wp-admin/” to complete the installation process and set up an admin account for your WordPress site.

Your WordPress site is now ready for integration with Webflow!

Step 4: Install and Configure Webflow Connect for WordPress Plugin

To establish a connection between your WordPress site and Webflow, we will use the Webflow Connect for WordPress plugin. Follow these steps:

  1. Login to your WordPress admin dashboard.
  2. Go to “Plugins > Add New” and search for “Webflow Connect“.
  3. Click on “Install Now” and then “Activate” the plugin.
  4. In the left-hand menu, go to “Webflow Connect > Settings“.
  5. Paste your Webflow site’s URL into the “Webflow Site URL” field.
  6. Paste your Webflow API key into the “Webflow API Key” field (you can obtain this key from your Webflow account settings).
  7. Click on “Save Changes”.

Your WordPress site is now connected to your Webflow site!

Step 5: Embed Your Webflow Site in WordPress Pages

To display your Webflow site within specific pages of your WordPress site, follow these steps:

  1. Create a new page in WordPress or edit an existing one where you want to embed your Webflow site.
  2. In the page editor, add a new “Custom HTML block” (if you have the Gutenberg editor) or use the “[webfloconnect]” shortcode (if you’re using the classic editor).
    • If using Gutenberg:
      • Select “Custom HTML” from the block inserter menu.
      • Paste the following code into the block:
      • <div id="webflow-connect"></div>

    • If using the classic editor:
      • Switch to the Text tab in the editor.
      • Paste the following shortcode into your content:
      • [webfloconnect]

  3. Update or Publish your page.

Your Webflow site will now be embedded within the specified WordPress page!

Conclusion

In this tutorial, we have learned how to link WordPress to Webflow, allowing you to combine the strengths of both platforms. By exporting your Webflow site, setting up a local development environment, installing and configuring the Webflow Connect for WordPress plugin, and embedding your Webflow site within WordPress pages, you can create a seamless integration between these two powerful tools. Now you can take advantage of Webflow’s design capabilities while leveraging WordPress’s extensive plugin ecosystem and content management features.