WordPress

Add JsonLD.io to your WordPress site using one of these methods.

Method 1: Theme Header (Recommended)

Add the script to your theme's header:

  1. Go to Appearance → Theme File Editor
  2. Select header.php from the right sidebar
  3. Find the </head> tag
  4. Add the script just before it:
<!-- JsonLD.io Script -->
<script async src="https://jsonld.io/api/jsonld/YOUR_TOKEN?format=js"></script>
</head>
  1. Click Update File

Method 2: Using functions.php

Add this code to your theme's functions.php:

function add_jsonld_script() {
    echo '<script async src="https://jsonld.io/api/jsonld/YOUR_TOKEN?format=js"></script>';
}
add_action('wp_head', 'add_jsonld_script');

Method 3: Plugin (Insert Headers and Footers)

  1. Install the Insert Headers and Footers plugin
  2. Go to Settings → Insert Headers and Footers
  3. In the Scripts in Header box, add:
<script async src="https://jsonld.io/api/jsonld/YOUR_TOKEN?format=js"></script>
  1. Click Save

Child Theme Recommended

If using Method 1 or 2, consider creating a child theme first. This prevents your changes from being overwritten during theme updates.

Disable Other Schema Plugins

If you have other SEO plugins generating structured data (Yoast, Rank Math, etc.), consider disabling their schema features to avoid duplicate markup:

  • Yoast SEO: Settings → Features → Schema → Off
  • Rank Math: General Settings → Schema Markup → Disable

Verification

  1. Visit any page on your WordPress site
  2. View the page source
  3. Search for application/ld+json
  4. Confirm your JsonLD.io schema appears