Knowledge base
Apply a fix

Add a JSON-LD structured-data block

A JSON-LD structured-data block is a <script type="application/ld+json"> snippet placed in a page's <head> that describes your site in machine-readable Schema.org format: Organization, Product, Article, FAQ, and similar types. It is invisible to visitors but read by Google and AI assistants to understand and cite your business, and you deploy it by pasting the exact block into the right page's <head>.

Why this matters for your site

Google and AI assistants read JSON-LD to learn what your business is, so the block turns your pages into rich results (star ratings, FAQ drop-downs, product prices, breadcrumbs) and gives AI answer engines a machine-readable fact sheet they can quote. Without it, machines infer your name, type, and products from the visible text and often guess wrong. Providing the block yourself states those facts in the exact format search engines and AI read first.

Do it on your platform

Pick your website platform below for the exact place to make this change, and how to confirm it worked.

plugin
  1. 1

    In the WordPress dashboard, open Plugins → Add New Plugin, search 'WPCode', click Install Now, then Activate. A default WordPress install has no field to inject a JSON-LD block until a code plugin like WPCode is active.

    PluginsAdd New Plugin
  2. 2

    For schema that belongs on every page (like Organization), open WPCode → Code Snippets → Header & Footer, paste your full JSON-LD block into the 'Header' box (it renders before </head> on every page), and Save.

    WPCodeCode SnippetsHeader & Footer
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Your Business Name",
      "url": "https://yourdomain.com",
      "logo": "https://yourdomain.com/logo.png"
    }
    </script>
  3. 3

    For a single-page type (Article or Product), open WPCode → Code Snippets → + Add Snippet, choose 'HTML Snippet', paste the block, set Insertion to Auto Insert with a page-specific rule, flip the toggle to Active, and Save.

    WPCodeCode Snippets+ Add Snippet

Check it worked. Open the live page, View Source (NOT Inspect), and search (Ctrl/Cmd+F) for application/ld+json. Your block appears in the <head>. Then validate: Google's Rich Results Test (search.google.com/test/rich-results) covers Article/Product/Breadcrumb; for FAQ, HowTo, Person and other types use validator.schema.org ('no items detected' in the Rich Results Test is normal for those).

Heads up. Step 0 is dedup: if Yoast or Rank Math is installed they already emit Organization and Article, and on WooCommerce the core emits Product/Offer on every product page. Pasting the same type creates a duplicate that confuses Google and AI parsers. Add only types your plugin/theme does not already output, or turn off the overlap first. Do NOT paste into Appearance → Theme File Editor. A theme update wipes it.

Add a JSON-LD structured-data block · Findrix Docs · Findrix