Where to put your schema code?

If you are adding schema to a website, the goal is simple: publish valid structured data in a place search engines can consistently find it, without duplicating markup across plugins, themes, and custom snippets.

Schema Nerd’s LocalBusiness plugin outputs JSON-LD in your universal header. That approach is intentional, and it matches how many sites handle business-level structured data during setup.

Below is how to think about schema placement, what Schema Nerd does today, and what is coming next.


Quick answer

  • Schema Nerd generates JSON-LD that can be used on virtually any website.
  • If you are installing it manually, use Copy to Clipboard in the Schema Markup Viewer and add that JSON-LD to the appropriate page or site template.
  • WordPress users can instead connect the Schema Nerd plugin to handle the schema output automatically.
  • Use one implementation method, not both, to prevent duplicates.
  • LocalBusiness markup can generally be implemented sitewide when the generated schema represents the business and its locations.
  • Page-specific schema types should only appear on relevant pages.

Implementing Your Schema

Option 1: Copy and Paste Schema Into Any Website

You do not need WordPress or the Schema Nerd plugin to use your schema.

Once you have created and saved your schema in the Schema Nerd Dashboard, open the Schema Markup Viewer to see the generated JSON-LD. From there, click Copy to Clipboard to copy the complete schema code.

You can then add that code to virtually any website or CMS that allows you to insert custom code.

Depending on how your website is built, that may mean adding the JSON-LD to:

  • A CMS-provided custom code or schema field
  • A sitewide header or code-injection area
  • A page or template file
  • A tag-management or custom HTML area
  • Developer-controlled HTML or source code

The exact placement method depends on your CMS or website setup, but the schema itself does not require WordPress.

If you update your business information later, make the changes in Schema Nerd, return to the Schema Markup Viewer, copy the updated JSON-LD, and replace the previous version on your website.

This option works well for custom-built sites and CMS platforms where you can manage structured data manually.

Option 2: Use the Schema Nerd WordPress Plugin

If your website is built with WordPress, you can also connect it directly to Schema Nerd using the Schema Nerd WordPress plugin.

Instead of manually copying and pasting JSON-LD, the plugin retrieves your schema from Schema Nerd and adds it to your WordPress site for you.

The main advantage is synchronization. When you update supported schema information in your Schema Nerd account, the connected WordPress site can retrieve the updated version without requiring you to copy and replace the schema code manually.

This makes the plugin especially useful for businesses that expect to update locations, hours, contact information, or other structured data over time.

The WordPress plugin is optional. It provides a more automated implementation method, while the schema you create in Schema Nerd can still be copied and used on other CMS platforms or custom websites.

Choose the implementation method that fits your website, and avoid installing the same schema both manually and through the plugin, since that can create duplicate structured data.


JSON-LD vs Microdata: what matters in WordPress

There are multiple ways to add schema markup, but in modern WordPress workflows, JSON-LD is usually the simplest to maintain:

  • JSON-LD is a script block that contains structured data.
  • Microdata is embedded inside HTML tags and attributes.

For most WordPress sites, JSON-LD is easier to keep consistent because it does not require editing templates, blocks, or page builder markup. It also tends to be less fragile when you update themes, swap builders, or change layouts.

Schema Nerd uses JSON-LD for LocalBusiness schema output.


Universal header vs per-page schema

When the universal header makes sense

Sitewide output is usually a good fit when the schema describes something that is true across the whole website, such as:

  • Your business name and branding
  • Your primary contact information
  • Your business type
  • Your locations and addresses
  • Your general hours

That is why Schema Nerd outputs LocalBusiness schema in the universal header today.

When per-page schema is a better fit

Per-page output is usually the right approach for schema types that are tied to specific content on a specific page, such as:

  • FAQ schema, which should match the Q and A content on that page
  • HowTo schema, which should match steps on that page
  • JobPosting schema, which should match an active job listing page
  • Product schema, which should match product content on that page

This is where many schema implementations go sideways. People copy and paste code into headers, and suddenly every page claims to have the same FAQ, the same job posting, or the same how-to instructions.

Schema Nerd’s future schema plugins are designed to support per-page schema mapping and customization for content-driven schema types.


Where schema goes wrong most often

Duplicate schema output

The most common placement problem is not “wrong location,” it is duplication.

This happens when:

  • An SEO plugin outputs schema automatically
  • A schema plugin outputs schema
  • A theme outputs schema
  • Someone added JSON-LD manually in the header
  • A developer hard-coded schema into templates

When more than one tool outputs the same schema type, you can end up with duplicate LocalBusiness markup or conflicting values. That can lead to confusing validation results and harder troubleshooting.

Best practice: one tool should be the source of truth for LocalBusiness schema.


How Schema Nerd handles schema placement today

LocalBusiness plugin behavior

  • LocalBusiness schema is configured in the Schema Nerd dashboard
  • Schema entries are managed in the Schema Nerd schema database
  • Schema Nerd outputs LocalBusiness JSON-LD in the universal header

This makes it easier to keep your LocalBusiness schema consistent during initial setup.


What is coming next

Schema Nerds is the umbrella brand for multiple schema tools. LocalBusiness is the first plugin. Coming soon, additional Schema Nerd plugins are planned, including:

  • FAQ schema
  • How-to schema
  • Job Posting schema
  • Organization schema
  • Additional schema types

These future plugins will support per-page schema customization, which is important for schema types that must closely match page content.


If you are migrating from another plugin

If you currently use another schema tool, decide which plugin will own LocalBusiness schema going forward.

A clean approach looks like this:

  1. Identify where schema is currently output (SEO plugin, schema plugin, theme, or custom code).
  2. Disable duplicate LocalBusiness output sources.
  3. Configure Schema Nerd as your primary LocalBusiness schema tool.
  4. Validate using Schema Nerd’s validator and Google’s Schema Markup Validator results.

Next steps

If you want to implement LocalBusiness schema now, start here:

If schema is not showing up, read: