Schema markup is one of the most powerful yet underused SEO techniques available. This guide walks you through exactly how to add it to your website step by step whether you're using plain HTML, WordPress, or Shopify. No coding experience required.
What is Schema Markup?
Schema markup is structured data code that you add to your website to help search engines understand your content. It uses a standardised vocabulary from Schema.org and is typically written in JSON-LD format, a small block of code placed in your page's tag.
When Google reads your schema, it can display rich results in search-enhanced listings that show star ratings, FAQ dropdowns, prices, cooking times, and more. These rich results take up more space on the page and attract significantly higher click-through rates than standard blue links.
Step 1: Choose the Right Schema Type
The first step is picking the right schema type for your page. Different pages need different schema. Here's a quick reference:
Blog post / article
FAQ page or section
Product page
Business homepage
Recipe page
How-to guide
Review page
Any page (navigation)
Step 2: Generate Your JSON-LD Code
Writing JSON-LD by hand is error-prone and time-consuming. The easiest approach is to use a free generator, fill in a form, and get a valid code instantly.
Once you've generated your schema, copy the full output. It looks like this:
Step 3: Add the Code to Your Website
Now paste the JSON-LD into your page. The method depends on your platform:
For plain HTML websites, paste the JSON-LD code directly inside the tag of your page before the closing tag.
For Wordpress
There are two easy ways to add schema in WordPress:
Using Rank Math (recommended): Install the free Rank Math SEO plugin → go to the page/post editor → find the "Schema" tab in Rank Math's sidebar → select your schema type and fill in the details. Rank Math generates the JSON-LD automatically.
Using a custom code plugin: Install "Insert Headers and Footers" or "WPCode" → paste your JSON-LD into the header section → save. The code will be added to every page, or you can add it per-page.
Using your theme's functions.php: Advanced users can add schema via wp_head() hook in functions.php. Only recommended if you're comfortable with PHP.
To add schema markup to a Shopify store:
Go to your Shopify Admin → Online Store → Themes
Click "Customize" next to your active theme
Click "Edit code" (or go to Actions → Edit code)
Open Layout → theme.liquid
Find the closing tag and paste your JSON-LD just before it
Click Save
To add schema markup in Wix:
Go to your Wix Dashboard → Settings → Advanced → Custom Code
Click "+ Add Custom Code"
Paste your JSON-LD schema code in the code box
Set Place Code to "Head"
Choose which pages to apply it to select specific pages for page-specific schema
Click Apply and publish your site
Step 4: Validate Your Schema
Before you publish, always validate your schema. This catches errors before Google finds them and ensures you're eligible for rich results.
Go to Schemify Validator
Visit schemify.in/validator, Schemify's free built-in schema validator. No signup or external tools needed.Paste your JSON-LD code
Copy your generated JSON-LD and paste it directly into the Schemify Validator. It instantly detects your schema type and checks for errors.Publish & monitor in Search Console
Once validated, paste the code into your page's tag and publish. Then check Google Search Console → Enhancements to monitor rich results. It typically takes a few days to a few weeks for rich results to appear.
Common Mistakes to Avoid
Schema doesn't match page content
The data in your schema must exactly match what's visible on the page. Mismatches are a policy violation.
Placing schema in body instead of head
JSON-LD should go inside your tag. Placing it in may work but is not recommended practice.
Using the wrong schema type
Using Product schema on a blog post or FAQPage schema on a recipe sends incorrect signals. Always match schema type to page type.
Never updating schema after changes
If your price, hours, or content changes, update your schema too. Stale schema data can cause validation errors and suppressed listings.
Frequently Asked Questions
What is the easiest way to add schema markup?
The easiest way is to use a free schema generator like Schemify, fill in a form, copy the JSON-LD output, and paste it into your page's head tag. No coding knowledge required. Schemify has free generators for every major schema type.
Where exactly do I paste schema markup?
Paste the JSON-LD script tag inside the tag of your HTML page, before the closing tag. In WordPress, use a plugin like Rank Math or Insert Headers and Footers. In Shopify, use the theme code editor and add it to theme.liquid.
Does schema markup affect rankings directly?
No, schema markup does not directly improve rankings. What it does is enable rich results which significantly improve click-through rates. Higher CTR sends positive signals to Google and can indirectly support better rankings over time. The primary benefit is more visible, more informative search listings.
How do I test my schema markup?
Use Schemify Validator; paste your JSON-LD code, and it instantly checks for errors, identifies your schema type, and confirms whether your markup is valid. Once published, you can also monitor rich results in Google Search Console under the Enhancements section.
Can I add multiple schema types to one page?
Yes, you can have multiple JSON-LD blocks in your page's head tag, each describing different aspects of the page. For example, a blog post can have both article schema and breadcrumb list schema. Each block should be a separate tag.</p>
<p><strong>How long does it take for rich results to appear?</strong><br>
After adding valid schema and publishing your page, it typically takes a few days to a few weeks for Google to crawl, process, and display rich results. You can speed this up by requesting indexing via Google Search Console's URL Inspection tool. Check the Enhancements section in Search Console to monitor progress.</p>
Top comments (0)