📋
Where & how to paste this code
METHOD 1
WordPress Theme <head> (recommended)
- In WordPress admin go to Appearance → Theme File Editor
- Open
header.php or functions.php
- Find the closing
</head> tag
- Paste the script tag just before
</head>
- Click Update File
...your existing head content...
<script type="application/ld+json">...</script> ← paste here
</head>
METHOD 2
Insert Headers and Footers plugin (easiest)
- Install the free Insert Headers and Footers plugin
- Go to Settings → Insert Headers and Footers
- Paste the script tag in the "Scripts in Header" box
- Click Save — done. No code editing needed.
METHOD 3
Yoast SEO / Rank Math (if you use them)
- Open the specific page or post in the WordPress editor
- Scroll to the Yoast SEO or Rank Math panel below the editor
- Go to Schema tab → Custom Schema or Schema Markup
- Paste only the JSON content (not the <script> tags) into the field
METHOD 4
Elementor / page builder "Custom Code" block
- Edit the page in Elementor (or your page builder)
- Add an HTML widget or Custom Code element
- Paste the full script tag into it
- Set the element to Hidden so it doesn't show visually
✅ Always validate your schema after pasting