vector pattern
Home » Documentation » Themeopia Schema documentation

Themeopia Schema documentation

Themeopia Schema lets you paste your own JSON-LD into a post, an author profile or your home page. It prints that markup in the page head and sits next to Yoast SEO or Rank Math without fighting them. If you have never used it, set aside about ten minutes to go from install to a checked page.

Before you start

  • WordPress 5.8 or newer and PHP 7.4 or newer.
  • Your license key. It is in your order email and under My Account > Licenses on this site.
  • The JSON-LD you want to add. If you do not have any yet, the examples further down are a good starting point.

Install and activate

  1. Download the zip from My Account > Downloads, or use the link in your order email.
  2. In your WordPress admin go to Plugins > Add New > Upload Plugin, choose the zip and install it.
  3. Activate the plugin.
  4. Go to Settings > BWE Licenses, paste your key and click Activate.

The plugin works without a key. The key is what switches on updates, so it is worth doing now rather than later.

Tell the plugin which SEO plugin you use

Open Settings > Themeopia Schema. The first dropdown decides how your schema is printed.

Themeopia Schema settings with the SEO plugin choice and post types
You pick What happens
Yoast SEO Your schema is printed as its own block, right next to the one Yoast prints.
Rank Math Your schema is added to Rank Math’s graph, so the page ends up with a single block of structured data.
None / other Your schema is printed as its own block. Use this if you have no SEO plugin or a different one.

With Yoast or Rank Math you also get a checkbox called “Disable plugin schema”. Tick it if you want only your own schema on the site. Think before you do that. Your SEO plugin’s schema for the organization, breadcrumbs and articles goes away with it, and you would need to write those yourself.

Under Post Types, tick the types that should get a schema box. Posts is selected by default. Save the settings when you are done.

Add schema to a post or page

The Themeopia Schema box in the post editor
  1. Edit a post. Scroll down to the box called Themeopia Schema.
  2. Paste your JSON-LD into it.
  3. Update the post.

After you save, the plugin tidies the layout of your JSON, so do not be surprised if the indentation changes. The content stays exactly as you wrote it. Leave the box empty and nothing is printed for that post.

Once the post is published, the box shows a link called “Test this page with Google”. It opens Google’s Rich Results Test with your page address filled in.

Only administrators and editors see this box. If you cannot find it, that is the first thing to check. See “Who can edit schema” below.

Add schema for an author

Go to Users, open a profile (or Profile if it is your own) and scroll to the Themeopia Schema section. Paste the author’s JSON-LD into the Author Schema field and update the profile. It is printed on that author’s archive page, for example /author/jane/.

The Author Schema field on a user profile

Administrators can edit any profile. Editors can edit their own.

Add schema for your home page

Go to Settings > General and find the Themeopia Schema section. The Home Schema field is the one for your home page.

The Home Schema field in Settings > General

If your front page is a static page and Home Schema is empty, the plugin uses the schema from that page’s own Themeopia Schema box instead. That is handy if you prefer to keep everything in one place.

Examples you can copy

Replace the details with your own before you use them.

An FAQ page

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Do you offer free delivery?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Orders over 50 dollars ship free within the country."
      }
    },
    {
      "@type": "Question",
      "name": "Can I return an item?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "You can return anything within 30 days if it is unused."
      }
    }
  ]
}

A local business on your home page

{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Green Leaf Bakery",
  "url": "https://example.com/",
  "telephone": "+1 555 0100",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "12 Market Street",
    "addressLocality": "Springfield",
    "postalCode": "12345",
    "addressCountry": "US"
  },
  "openingHours": "Mo-Sa 07:00-18:00"
}

A person on an author page

{
  "@context": "https://schema.org",
  "@type": "Person",
  "name": "Jane Carter",
  "jobTitle": "Food writer",
  "url": "https://example.com/author/jane/",
  "sameAs": [
    "https://www.linkedin.com/in/example"
  ]
}

You can also paste a whole document with several items inside an @graph list, or a plain list of items. With Rank Math each item becomes its own node in Rank Math’s graph.

Check that it works

  1. Open the page on your site and view the page source.
  2. Search for themeopia-schema-graph. If you chose Rank Math, search for part of your own text instead, because your schema is inside Rank Math’s block.
  3. Run the page through Google’s Rich Results Test, or use the link in the post box.

With Rank Math, a FAQ is sometimes folded into the page’s own WebPage entry. That is Rank Math’s normal behaviour and the questions are still there.

Who can edit schema

By default only administrators and editors can write schema. Authors and contributors cannot. Schema changes how a page can look in search results, so we keep it away from accounts that only write content.

If you want a different rule, add a filter to your theme’s functions.php or a small custom plugin. This one limits it to administrators:

add_filter( 'themeopia_schema_edit_capability', function () {
    return 'manage_options';
} );

Updates and your license

Everything about the license lives under Settings > BWE Licenses. You will see the status, the date your updates run until and how many of your sites are in use.

  • Sites. One license works on up to three sites.
  • Moving a license. Click Deactivate on the old site, then activate the key on the new one. You can also remove a site from My Account > Licenses on this website.
  • When updates end. Nothing breaks. The plugin keeps printing your schema. You just stop receiving new versions.
  • Renewing. Open My Account > Licenses and choose how long you want to extend. The same key keeps working, you do not need to enter a new one.
  • Lifetime licenses. They have no end date, so there is nothing to renew.

New versions show up on the Dashboard > Updates screen like any other plugin. You can also click “Check again” next to your key.

When something does not work

Nothing is printed on the page

  • Check that the post type is ticked in Settings > Themeopia Schema.
  • Make sure you updated the post after pasting the schema.
  • Clear your cache plugin and any server cache, then look at the source again.
  • Look for the warning described next.

“The schema you saved is not valid JSON”

Your text is kept, but it is not printed until it is fixed. The usual causes are a comma after the last item, single quotes instead of double quotes, curly quotes that came from a word processor, or a missing bracket. Paste the text into any JSON validator and it will point at the line.

Google reports the same item twice

Another plugin or your theme is printing the same type of schema. Either turn that off, or tick “Disable plugin schema” if the duplicate comes from Yoast or Rank Math.

I cannot see the schema box

You need to be an administrator or an editor, and the post type has to be ticked in the settings.

The license will not activate

  • “Key not recognised” usually means a typo. Copy it from your order email instead of typing it.
  • “All sites of this license are in use” means you already have three sites on it. Remove one in My Account > Licenses.
  • “Refunded or cancelled” means the order behind the key was refunded.
  • If the plugin says it cannot reach the license server, try again in a few minutes. If it keeps happening, check that your host allows requests to themeopia.com.

Moving from BWE Schema

Themeopia Schema is the new name of BWE Schema. Your saved schema and settings move over by themselves:

  1. Install and activate Themeopia Schema. If BWE Schema is still active, a note asks you to switch it off, so your schema is not printed twice.
  2. Deactivate BWE Schema. The next page you open copies the schema of your posts, authors and home page, and all settings, to Themeopia Schema. The data of BWE Schema is left in place.
  3. Go to Settings > BWE Licenses and enter your key again for Themeopia Schema.
  4. Check a page source for your schema, then delete BWE Schema.

Removing the plugin

If you delete the plugin, your schema stays in the database unless you ticked “Delete all schema I entered” in the settings first. Deleting the plugin also frees the license on that site, as long as the site can reach themeopia.com at that moment.

What the plugin sends to us

When you activate a license, and once a day after that, the plugin sends your license key, your site address, the plugin version and the WordPress and PHP versions to themeopia.com. That is only used to check the license and offer updates. No visitor data is sent.

Still stuck?

Email [email protected]. It helps if you include your license key, the address of the page and a copy of the schema you are trying to use.

Version history

2.0.0

  • BWE Schema is now Themeopia Schema. Saved schema and settings are copied over automatically.

1.2.0 (as BWE Schema)

  • Schema can no longer break out of the page’s script tag.
  • Fixed schema being damaged when it contained quotes, backslashes or line breaks.
  • With Rank Math, each part of your schema is now a proper node in its graph.
  • Only administrators and editors can write schema.
  • Added the “None / other” choice, the invalid JSON warning and the “Test this page with Google” link.
  • Added license and automatic updates from themeopia.com.
Link copied successfully!