← All platforms

Install guide

Install Tapestry on WordPress

Use a header-code plugin, or add it to your theme.

The snippet

Replace SITE_KEY with your site's key, or open this guide from your site's page in Tapestry to see it filled in.

<script src="https://cdn.patchwork.run/s/SITE_KEY.js"></script>

Steps

  1. Install and activate the free WPCode plugin (Plugins → Add New → search “WPCode”).
  2. Go to Code Snippets → Header & Footer and paste the snippet into the Header box, which outputs in <head>.
  3. Save changes.
  4. If you use a caching or optimization plugin (WP Rocket, Autoptimize, LiteSpeed), exclude cdn.patchwork.run from “delay JavaScript” and “defer JavaScript”, then clear the cache.
Theme alternative: add the snippet in a child theme's header.php right after <head>, so a theme update doesn't remove it.

Check it worked

Load any page of your site. Within a minute your site's page in Tapestry switches from “Waiting for install” to “Installed”, and you can start your first experiment.