How to Add Schema Markup Manually (Advanced)
WordPress Tutorials & How-To (Advanced)
How to Add Schema Markup Manually (Advanced Guide)
Schema markup (structured data) helps search engines understand your content better. It enables rich results like stars, FAQs, breadcrumbs, product prices, how-to steps, and more. While plugins like Rank Math automate schema, advanced users may want to add custom, highly-optimized JSON-LD schema manually. This guide covers everything step-by-step.
1
What Is Schema Markup?
Structured data that boosts search visibility.
Schema markup is a JSON-LD code snippet added to your website to help search engines understand content formats.
Examples of schema types:
- Article Schema
- FAQ Schema
- How-To Schema
- Product Schema
- Service Schema
- Recipe Schema
- Local Business Schema
- Event Schema
- Breadcrumb Schema
- Organization Schema
Schema improves CTR and boosts SEO by enabling rich results on Google.
2
Why Add Schema Manually?
For full control & custom SEO optimization.
- Precise customization beyond plugin limits
- Better structured data for unique websites
- No plugin dependency or conflicts
- Improved accuracy for Google Rich Results
- Essential for developers & advanced users
- Add Schema to pages where plugins cannot detect content
Manual schema gives you 100% freedom and control.
3
Where to Add Manual Schema in WordPress?
Add JSON-LD in the correct placement.
You can insert schema using:
Method 1 — Insert into Theme Header
Go to Appearance → Theme File Editor → header.php (not recommended unless using child theme).
Method 2 — Insert via Code Snippet Plugin
- WPCode
- Code Snippets
Method 3 — Insert Directly Into Elementor Page
- Edit page with Elementor
- Add HTML Widget
- Paste JSON-LD
Method 4 — Insert via Rank Math Custom Schema
Rank Math → Schema Generator → Custom Schema → Add JSON-LD.
4
How to Add Article Schema Manually
Perfect for blog posts, tutorials & reviews.
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Add Schema Markup Manually",
"datePublished": "2025-01-01",
"dateModified": "2025-01-01",
"author": {
"@type": "Person",
"name": "Your Name"
},
"publisher": {
"@type": "Organization",
"name": "Your Website Name",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
},
"image": "https://example.com/article-cover.jpg"
}
Customize each value based on your article.
5
How to Add FAQ Schema Manually
Great for boosting CTR.
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is Schema Markup?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Schema markup is structured data that helps search engines understand your content."
}
},
{
"@type": "Question",
"name": "How do you add schema manually?",
"acceptedAnswer": {
"@type": "Answer",
"text": "You can add schema manually using JSON-LD via theme files, code snippets, or HTML blocks."
}
}
]
}
Add unlimited Q&A pairs for more SERP space.
6
How to Add How-To Schema Manually
Best for tutorials & step-by-step guides.
{
"@context": "https://schema.org",
"@type": "HowTo",
"name": "How to Add Schema Markup Manually",
"step": [
{
"@type": "HowToStep",
"name": "Create Schema Code",
"text": "Prepare the JSON-LD structured data for your content."
},
{
"@type": "HowToStep",
"name": "Add to WordPress",
"text": "Paste the JSON-LD code inside a code snippet, theme file, or HTML widget."
}
]
}
Helps your guide appear with rich visual steps on Google.
7
How to Add Local Business Schema
Essential for local SEO.
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Your Business Name",
"address": {
"@type": "PostalAddress",
"streetAddress": "Address",
"addressLocality": "City",
"postalCode": "000000",
"addressRegion": "State",
"addressCountry": "IN"
},
"telephone": "+91-9000000000",
"openingHours": "Mo-Sa 09:00-18:00",
"image": "https://example.com/image.jpg",
"url": "https://yourwebsite.com"
}
This schema strengthens Google Maps visibility.
8
How to Add Product Schema Manually
Great for WooCommerce SEO.
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Product Name",
"image": "https://example.com/image.jpg",
"description": "Short description of the product.",
"sku": "PROD-01",
"brand": {
"@type": "Brand",
"name": "Brand Name"
},
"offers": {
"@type": "Offer",
"priceCurrency": "INR",
"price": "999",
"availability": "http://schema.org/InStock",
"url": "https://example.com/product"
}
}
Add ratings, reviews, and price fields for richer results.
9
Validate Your Schema
Always check for errors before publishing.
Use Google’s tools:
- Rich Results Test
- Schema Markup Validator
- Search Console → Enhancements
Fix errors before going live to ensure rich result eligibility.
10
Common Schema Issues & Fixes
Solve validation errors easily.
1. Missing Field Errors
Add required fields like name, description, image.
2. Wrong Data Types
Ensure you use correct Schema.org structure.
3. Duplicate Schema
Disable automatic schema from plugins when adding manual version.
4. Script Not Recognized
Ensure the tag is:
<script type="application/ld+json">...</script>
Want Schema-Optimized WordPress Websites?
All SiteCrafted premium websites come with advanced SEO structure, JSON-LD schema integration, Rank Math optimization, and high-CTR page layouts.









