Schema markup generator tool by Marco Ilardi

After you generate a schema, you need to put it on the right page. JSON-LD is a script block, so adding it takes a few minutes, whichever platform you use. This guide shows where the code goes, how to add it in plain HTML and in WordPress, and how to check the result.

Where the code goes

Wrap the JSON in a script tag with the type application/ld+json and place it in the head section of the page it describes. Google can also read JSON-LD in the body, but the head is the cleanest place. Put each schema on the page it is about: an Organization schema on your home or About page, a Product schema on the page of that product.

Example in plain HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <title>My Website</title>
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Organization",
    "name": "My Company",
    "url": "https://www.example.com/",
    "logo": "https://www.example.com/logo.png"
  }
  </script>
</head>
<body>
  <!-- page content -->
</body>
</html>

Options in WordPress

Avoid printing the same schema twice. If your theme or SEO plugin already outputs an Organization block, edit that one or turn it off before adding your own.

Check that it works

  1. Open the live page and test its address with the schema markup validator.
  2. Fix any error and publish the corrected code.
  3. Check the structured data reports in Google Search Console after a few days.

If you have not generated your code yet, start from the Organization schema generator or read how to start generating your schemas.

Sviluppato con Micro WP da Micropedia