How to add custom JSON-LD (schema) markup to a page on your website.

JSON-LD is a small block of structured data that helps search engines understand your business, such as your name, address, hours and the brands you carry. Your website already outputs basic schema for each page automatically. If you want to add more detail, like Local Business information, you can paste your own JSON-LD into the Custom JSON-LD box on any page.

Before you start

  • Have your JSON-LD ready. You can write it yourself, use a schema generator, or get it from your SEO provider.
  • It must be valid JSON. Paste the JSON only. Do not include script tags, because your website adds those for you.
  • Add it to the page the markup describes. Business-wide details such as your address, phone number and hours belong on your Home page.

Steps

  1. Log in to your WordPress dashboard (yourwebsite.com/wp/wp-admin).
  2. In the left menu, click Pages, then All Pages.
  3. Find the page you want (for example, Home) and click Edit.
  4. Scroll to the bottom of the page editor. Below the sidebar sections (such as CTA Buttons) you will see a box called Custom JSON-LD.
  5. Click inside the box and paste your JSON-LD.
  6. Click Update in the Publish box at the top of the right column to save the page.

The Save All button inside the CTA Buttons section only saves that section. Always finish with the page Update button.

Check that it worked

  1. Wait about 5 minutes after updating, so your site's page cache can refresh.
  2. Open the page on your live site, right-click and choose View page source, then search for ld+json. You will see your markup inside a script block of that type.
  3. Paste the page address into validator.schema.org or Google's Rich Results Test to confirm there are no errors.

Good to know

  • Your markup is added to the automatic schema, it does not replace it. Your site keeps outputting its standard page and site schema. Use the Custom JSON-LD box for details that are not already covered, such as Local Business or FAQ markup.
  • Give your markup its own @id. For example, https://yourwebsite.com/#dealership. This keeps it from being confused with the automatic schema.
  • One page, one set of markup. If you add markup to a page, keep everything for that page in the single box.
  • To remove it, clear the box and click Update. The page returns to its automatic schema only.
  • If you see an error, check for a missing comma, bracket or quotation mark. Copy your markup from a plain text editor, not Word or Google Docs, which can swap straight quotes for curly ones and break the code.
  • This box applies to the page it is on. It does not change the schema on individual boat listing pages, which is generated automatically.

Example: Local Business markup for a Home page

This is a sample with placeholder details. Replace every value with your own.

{
  "@context": "https://schema.org",
  "@type": ["LocalBusiness", "Store"],
  "@id": "https://yourwebsite.com/#dealership",
  "name": "Your Dealership Name",
  "url": "https://yourwebsite.com/",
  "description": "Boat dealership in Your City, State selling new and used boats.",
  "telephone": "+1-555-555-0100",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "100 Harbor Way",
    "addressLocality": "Your City",
    "addressRegion": "ST",
    "postalCode": "00000",
    "addressCountry": "US"
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "09:00",
      "closes": "17:00"
    }
  ],
  "brand": [
    { "@type": "Brand", "name": "Brand One" },
    { "@type": "Brand", "name": "Brand Two" }
  ]
}
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.