How to add schema markup (structured data) to your website: LocalBusiness, Product and FAQ
Schema markup (structured data) is a small block of code that describes your page to search engines in a standard format: "this is a business, here is its address and phone", or "this is a product, here is its price". It can make your page eligible for rich results such as product prices and ratings in Google. This guide explains how to add schema markup to your website for a local business, products and FAQs, and how to test it.
Which schema types matter for most businesses
| Type | Use it on | What it describes |
|---|---|---|
| Organization / LocalBusiness | Home page or contact page | Name, logo, address, phone, opening hours, social profiles |
| Product | Product pages | Name, image, price, currency, availability, reviews |
| FAQPage | Pages with a real questions-and-answers section | The questions and their answers |
| BreadcrumbList and Article | Category and blog pages | Page hierarchy and article details |
Option 1: Let an SEO plugin do it (WordPress)
- Install Yoast SEO or Rank Math (only one).
- In the plugin settings, fill in your site's identity: organization or person, business name, logo and social profiles. The plugin then adds Organization/WebSite schema to every page automatically.
- With WooCommerce active, product pages already output Product schema with price and stock. Keep prices and stock status accurate in WooCommerce.
- For a local business with address and opening hours, use the plugin's local SEO options if available, or add a LocalBusiness block manually (Option 2).
Option 2: Add JSON-LD by hand
JSON-LD is the format Google recommends. You paste a script into the page's <head> or body. Here is a LocalBusiness example; replace every value with your real data:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Your Company Name",
"url": "https://yourcompany.com/",
"logo": "https://yourcompany.com/logo.png",
"telephone": "+20-2-0000-0000",
"address": {
"@type": "PostalAddress",
"streetAddress": "Street and building number",
"addressLocality": "Cairo",
"addressCountry": "EG"
},
"openingHours": "Su-Th 09:00-17:00",
"sameAs": ["https://www.facebook.com/yourpage"]
}
</script>
On WordPress you can add it with a header/footer code plugin or your theme's custom code area. Choose a more specific type if one fits, for example Restaurant, Dentist or Store.
Step 3: Test before and after publishing
- Open Google's Rich Results Test at
https://search.google.com/test/rich-resultsand enter your page URL or paste the code. - Fix any items marked as errors. Warnings are optional fields you can add later.
- Use
https://validator.schema.orgto check general schema validity. - After Google recrawls your site, Search Console (set it up here) shows reports for detected structured data (for example under Shopping or Enhancements).
About FAQ schema
You can still add FAQPage markup to pages with a genuine FAQ section; it helps describe the page. However, Google now shows FAQ rich results only for a limited set of authoritative sites (such as government and health sites), so most business sites should not expect the expandable questions to appear in results.
Common problems
- Duplicate schema: a theme, an SEO plugin and a page builder may all output schema. Keep one source for each type.
- Missing price or availability on products: set a regular price and stock status for every WooCommerce product.
- JSON syntax error: one missing comma or quote breaks the whole block. Always run the test tool.
Frequently asked questions
Does schema improve my ranking directly?
Not directly. It helps Google understand your content and can make results more attractive, which may increase clicks.
Is rich result display guaranteed?
No. Valid markup makes a page eligible; Google decides whether to show it.
Building a new site? Ask our web design team to include clean structured data from the start, or our SEO team to add it to your current site.