How to add schema to a page in Elementor

Schema (also called structured data) is a small block of code that tells Google exactly what a page is about, such as your organisation, an event, a list of questions and answers, or a service. It doesn’t change how the page looks. Done well, it helps Google understand your pages and can earn richer search results.

On websites built with Elementor Pro, the tidiest place for schema is Elementor’s Custom Code feature. Each page gets its own snippet, the code loads in the right place (the page’s <head>), and it’s easy to find and update later.

Before you start

  • You’ll need an administrator login for the website.
  • Have your schema ready as JSON-LD. It starts with <script type="application/ld+json"> and ends with </script>.
  • If the site uses Yoast SEO, it already adds basic schema to every page (your organisation, the web page and breadcrumbs). Only add the extra types Yoast doesn’t cover, such as FAQPage, Event, Service, Person or Course. Don’t add a second Organization or WebPage, as duplicates confuse Google.

Step 1: Add the code

  1. In the WordPress dashboard, go to Elementor > Editor, then Custom Elements > Code. On older versions of Elementor this is Elementor > Custom Code.
  2. Click Add New.
  3. Give it a clear title with the page name, for example Schema: About Us page.
  4. Set Location to <head> and leave Priority at 1.
  5. Paste your schema into the code box, including the opening <script type="application/ld+json"> and closing </script> tags.

Step 2: Choose the page

  1. Click Publish. A window opens asking Where do you want to display your code?
  2. Change Entire site to Singular, then Pages, then start typing the page’s name and pick it from the list.
  3. Click Save & Close.

Leaving it on Entire site would add the schema to every page, which is only right for site-wide schema. For schema that belongs to one page, always pick the page. If the same schema should go on a few pages, click Add Condition for each one.

Step 3: Check it

  1. Open the free Schema Markup Validator, choose Code snippet, paste the same code and click Run test.
  2. You want to see your schema type listed with 0 errors. Warnings are worth fixing but won’t break anything.

Once the page is live, you can also test the page address in Google’s Rich Results Test. Staging (test) sites are password protected, so test the code itself until the site goes live.

Tips

  • Repeat steps 1 to 8 for each page: one snippet per page keeps everything easy to find.
  • Avoid pasting schema into an HTML widget on the page. It’s easily lost when a section is redesigned, and some user roles can’t save code there.
  • Keep schema matching what’s on the page. If you change an FAQ answer or an event date, update its schema too.
  • Building on a staging site? The snippets move across with the site when it goes live, so there’s no need to add them again.
  • Not sure which schema to use or want a hand? Send us a support request.
Still stuck?

Send us a support request and a real person will help, usually within one business day.

More guides

How to log in to your WordPress website

Where to find your website's login page, what to enter, and what you'll see once you're in.

How to reset your WordPress password

Locked out? Reset your WordPress password from the login page in a couple of minutes.

How to edit text and images with Elementor

Change the words and photos on your website with Elementor, without breaking the design.