Knowledgebase

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

TypeUse it onWhat it describes
Organization / LocalBusinessHome page or contact pageName, logo, address, phone, opening hours, social profiles
ProductProduct pagesName, image, price, currency, availability, reviews
FAQPagePages with a real questions-and-answers sectionThe questions and their answers
BreadcrumbList and ArticleCategory and blog pagesPage hierarchy and article details

Option 1: Let an SEO plugin do it (WordPress)

  1. Install Yoast SEO or Rank Math (only one).
  2. 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.
  3. With WooCommerce active, product pages already output Product schema with price and stock. Keep prices and stock status accurate in WooCommerce.
  4. 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

  1. Open Google's Rich Results Test at https://search.google.com/test/rich-results and enter your page URL or paste the code.
  2. Fix any items marked as errors. Warnings are optional fields you can add later.
  3. Use https://validator.schema.org to check general schema validity.
  4. After Google recrawls your site, Search Console (set it up here) shows reports for detected structured data (for example under Shopping or Enhancements).
Rules that keep you safe: mark up only information that visitors can actually see on the page, never fake reviews or ratings, and keep prices in the schema the same as on the page. Misleading structured data can lead to a manual action from Google.

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.

Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.

  • schema markup, structured data, JSON-LD, LocalBusiness schema, Product schema, FAQ schema, rich results, سكيما, البيانات المنظمة

Was this answer helpful?

0 Users Found This Useful