
Schema markup is a block of structured data, usually written in JSON-LD, that tells Google exactly what a page is about: your business name, address, opening hours, prices, reviews, FAQs and more. It does not directly raise rankings, but it makes pages eligible for rich results such as star ratings, product prices and breadcrumbs, which can lift click-through rates. Also, this guide explains how schema works, which types a business website needs, and gives copy-and-paste JSON-LD examples you can adapt.
- Use JSON-LD inside a
<script type="application/ld+json">tag. Google recommends it over Microdata and RDFa. - Most business sites need Organization or LocalBusiness, WebSite, BreadcrumbList and Article or Product schema.
- Schema must describe content that is visible on the page. Marking up hidden or fake content can trigger a manual action.
- Test every template with Google's Rich Results Test and watch the Enhancements reports in Search Console.
What schema markup actually does
Search engines read HTML well, but they still have to guess what each piece of text means. Is "0336 3144 534" a phone number or an order ID? Is "4.8" a rating or a price? Schema removes the guessing by labelling the facts with a shared vocabulary from schema.org, which Google, Bing and other engines all support. Also, this matters for schema markup on every kind of site.
In addition, when Google trusts your structured data, it can show extra information in search results. In fact, these enhanced listings are called rich results. Common ones include:
- Breadcrumbs instead of a raw URL under the title.
- Product price, availability and review stars for online stores.
- Article details such as headline, image and date for news and blog posts.
- Local business details that support your Google Business Profile and knowledge panel.
- Event, Recipe, Course and Job posting results for those page types.
Schema markup: JSON-LD vs Microdata vs RDFa
| Format | How it works | Verdict |
|---|---|---|
| JSON-LD | A separate script block in the page head or body | Recommended by Google. Easy to add, edit and generate from a CMS. |
| Microdata | Attributes such as itemprop added to visible HTML tags | Works, but mixes data into your design markup and breaks easily. |
| RDFa | Attributes such as property on HTML tags | Works, rarely used on business sites today. |
Use JSON-LD unless you have a specific reason not to. Also, it keeps the data in one place, and developers can build it from the same database fields that render the page.
Schema markup: which schema types a business website needs
| Page | Schema type | Main properties |
|---|---|---|
| Home page | Organization or LocalBusiness, WebSite | name, logo, url, address, telephone, sameAs |
| Service pages | Service, BreadcrumbList | serviceType, provider, areaServed |
| Blog posts | Article or BlogPosting, BreadcrumbList | headline, image, datePublished, dateModified, author |
| Product pages | Product with Offer | name, image, sku, offers.price, priceCurrency, availability |
| Contact page | LocalBusiness (or reuse the site-wide entity) | address, geo, openingHoursSpecification |
Example 1: LocalBusiness schema
If customers visit you or you serve a specific city, use LocalBusiness or a more specific subtype such as ProfessionalService, Restaurant, Dentist or Store. Put it on the home page and contact page. The details must match your Google Business Profile exactly.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ProfessionalService",
"@id": "https://www.example.com/#business",
"name": "Example Studio",
"url": "https://www.example.com/",
"logo": "https://www.example.com/logo.png",
"image": "https://www.example.com/office.jpg",
"telephone": "+92-300-0000000",
"email": "info@example.com",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "Office 12, Example Plaza, Shahrah-e-Faisal",
"addressLocality": "Karachi",
"addressRegion": "Sindh",
"postalCode": "75400",
"addressCountry": "PK"
},
"geo": { "@type": "GeoCoordinates", "latitude": 24.8607, "longitude": 67.0011 },
"openingHoursSpecification": [{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
"opens": "10:00",
"closes": "19:00"
}],
"sameAs": [
"https://www.facebook.com/example",
"https://www.linkedin.com/company/example"
]
}
</script>
The @id gives this entity a stable identifier, so other blocks on the site (such as an Article's publisher) can point to it instead of repeating every field.
Example 2: Article schema for blog posts
Blog posts should carry BlogPosting (a subtype of Article). The most important fields are the headline, a large image (at least 1200 pixels wide), the published and modified dates in ISO 8601 format, and the author.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "How to Choose a Domain Name for Your Business",
"image": ["https://www.example.com/uploads/domain-guide-1200.jpg"],
"datePublished": "2026-11-12T05:02:00+05:00",
"dateModified": "2026-11-20T09:30:00+05:00",
"author": { "@type": "Organization", "name": "Example Studio", "url": "https://www.example.com/about" },
"publisher": { "@id": "https://www.example.com/#business" },
"mainEntityOfPage": "https://www.example.com/blog/choose-domain-name"
}
</script>
Only change dateModified when you make a real update to the content. Bumping dates without changes can make Google trust your dates less.
Example 3: BreadcrumbList
Breadcrumb schema helps Google show your site structure in results. It should match the breadcrumb trail visible on the page.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.example.com/" },
{ "@type": "ListItem", "position": 2, "name": "Blog", "item": "https://www.example.com/blog" },
{ "@type": "ListItem", "position": 3, "name": "Schema Markup Guide" }
]
}
</script>
The last item can leave out item because it is the current page.
Example 4: Product schema for online stores
For stores, Product schema is where rich results pay off most. Google can show price, stock status and ratings, and it uses the same data for free product listings in the Shopping tab.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Cotton Lawn 3-Piece Suit",
"image": ["https://www.example.com/img/lawn-suit-1.jpg"],
"description": "Unstitched printed lawn with chiffon dupatta.",
"sku": "LAWN-2026-014",
"brand": { "@type": "Brand", "name": "Example Textiles" },
"offers": {
"@type": "Offer",
"url": "https://www.example.com/product/lawn-suit-014",
"priceCurrency": "PKR",
"price": "6490",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
},
"aggregateRating": { "@type": "AggregateRating", "ratingValue": "4.7", "reviewCount": "38" }
}
</script>
aggregateRating if real customer reviews are shown on that page. Self-written reviews about your own business on LocalBusiness or Organization markup are not eligible for review stars.Schema markup: how to add schema in WordPress
- SEO plugins: Yoast SEO, Rank Math and SEOPress generate Organization, WebSite, BreadcrumbList and Article schema automatically. Fill in the business details in their settings and check the output.
- WooCommerce: adds basic Product schema. SEO plugins extend it with brand, GTIN and review data.
- Custom blocks: for a special page type, add a JSON-LD block in the theme template using the post's own fields, so it updates automatically when content changes.
- Avoid duplicates: if a theme and a plugin both output Organization schema, Google sees two different entities. Turn one off.
Schema markup: how to test and monitor your schema
- Paste the URL or code into Google's Rich Results Test to see which rich results the page is eligible for.
- Use the Schema Markup Validator to check general schema.org syntax, including types Google does not show as rich results.
- After launch, open Search Console → Enhancements (and Shopping for stores) to see valid items, warnings and errors across the whole site.
- Re-test templates after theme or plugin updates, because they often change the markup.
If you are new to Search Console, start with our Search Console beginner's guide.
Common schema mistakes
- Marking up content that visitors cannot see on the page.
- Business name, address or phone that differs from the Google Business Profile.
- Prices in schema that do not match the price shown on the product page.
- Invalid JSON, such as a trailing comma or curly quotes pasted from a word processor.
- Using relative image URLs instead of full
https://addresses. - Expecting schema alone to fix rankings. It helps Google understand good content; it does not replace it.
Frequently asked questions
Does schema markup improve rankings?
Not directly. Google has said structured data is not a ranking factor, but rich results can raise click-through rates, and clearer understanding helps the right pages show for the right searches.
How long until rich results appear?
After Google recrawls the page, usually a few days to a few weeks. Eligibility does not guarantee display; Google decides per search.
Where should the JSON-LD go, head or body?
Either works. Most sites put it in the head, but Google reads it anywhere in the HTML, including content injected by JavaScript.
Can I have several schema blocks on one page?
Yes. A blog post commonly has Organization, BreadcrumbList and BlogPosting blocks. You can also combine them in one block using @graph.
Related guides: Canonical Tags Explained, Meta Title and Meta Description Length and What Is a Sitemap? How to Create and Submit One to Google.
Need schema set up properly?
Our SEO team adds and tests structured data for business websites and online stores, alongside technical fixes such as sitemaps and meta titles. Contact us for a free technical SEO check.
Written by the ItsWebExpert team, a web design and development company in Karachi building websites, online stores and apps for businesses across Pakistan.
Ask a Question on WhatsApp