+254725682556 +254725052660 info@ziprof.co.ke
Client Area

SEO

What Is Schema Markup (Structured Data) and How Do You Add It to Your Website?

Schema markup is a small piece of code you add to your website's pages that describes your content in a way search engines can read directly, instead of guessing. Adding it correctly can help your business show up in search results with extra details like star ratings, opening hours, or a list of frequently asked questions, instead of a plain blue link.

What Is Schema Markup?

Schema markup (also called structured data) uses a shared vocabulary, defined at schema.org, that both Google and other search engines understand. You label pieces of your page, such as your business name, address, phone number, or product price, with this vocabulary so a search engine can pull them out with confidence instead of trying to interpret your page's regular text and design.

It does not change how your page looks to a visitor. It is read by search engines, not by people browsing your site.

Why It Matters for Your Website

Schema markup does not directly improve your ranking position, but it makes it easier for search engines to understand and correctly display your page. In practice, that can mean:

  • Your business address, hours, and rating appearing directly in search results.
  • A recipe, event, or product showing extra details like price or availability.
  • Your FAQ content appearing as an expandable list directly in the search results.
  • Search engines having a clearer, more accurate picture of what your page is about.

Common Types of Schema for a Small Business

You do not need to add every type. Pick the ones that genuinely match content already on your page:

  • LocalBusiness: your business name, address, phone number, and opening hours.
  • Product: for an online store, covering price, availability, and reviews.
  • FAQPage: for a page that already has a list of questions and answers.
  • Review or AggregateRating: if you display genuine customer reviews.
  • Article or BlogPosting: for blog posts and news-style content.
Only mark up content that is actually visible on the page. Adding schema for reviews, ratings, or details that do not appear anywhere on the page is against search engine guidelines and can get a page penalized rather than helped.

How to Add Schema Markup to Your Website

The most common and easiest to maintain format is JSON-LD: a small block of code placed in the page, separate from your visible content.

If You Use WordPress

  1. Most SEO plugins (the same ones you may already use for titles and meta descriptions) include a schema or structured data section. Check your plugin's settings first, since it may already be generating basic schema for you automatically.
  2. If you need a specific type your plugin does not cover, such as a custom FAQ block, look for a dedicated schema plugin in the Plugins menu and fill in the fields it provides. Most of these plugins generate the JSON-LD code for you, so you do not need to write it by hand.
  3. After activating or configuring it, view your page's source to confirm a script block with type application/ld+json has been added.

If You Manage HTML Directly

  1. Write your JSON-LD block by hand, following the format shown for your content type on schema.org, or generate it with one of the many free schema generator tools available online.
  2. Place the code inside the page's head section, or just before the closing body tag.
  3. Edit the page file through your hosting account's file manager or your usual FTP connection, save your changes, and upload it back if needed.

How to Test Your Schema Markup

Before you consider it done, check that the code is valid and actually being read correctly:

  1. Search for Google's Rich Results Test tool and paste in your page's URL or the code itself.
  2. Review the results. The tool will show which schema types it detected and flag any missing required fields or formatting errors.
  3. Fix any errors it reports, then test again until the page passes cleanly.
Rich results are not guaranteed even with valid schema. Search engines decide when and whether to display the enhanced result. Valid markup simply gives your page the best chance.

Schema markup works alongside your regular on-page SEO, it does not replace it. See On-Page SEO Basics: Title Tags, Meta Descriptions, and Headings for the fundamentals to get right first.