Home / Schema Generators / Website
🌐 Website Schema

Website Schema Generator

Create structured data for your entire website with Sitelinks Search Box. Enable Google Search users to search your site directly from the results page, improving user experience and engagement.

Sitelinks Search Box
Site Name Display
Better Navigation
🌐 Enter Website Details

Website schema enables the Sitelinks Search Box in Google results. Place this on your homepage. Learn more about Website markup →

JSON-LD Output
✓ Valid JSON-LD

Note: The search URL template must include {search_term_string} as the query parameter placeholder. Ensure your search functionality supports this format.

Copied to clipboard!
Website Schema Guide

How to Add Website Schema

Follow these steps to enable the Sitelinks Search Box and help Google understand your site structure.

🌐

Where to Place the Code

Place the Website schema JSON-LD in the <head> section of your homepage only. This schema represents your entire site, not individual pages.

  • Add to homepage <head> section only
  • Use a plugin like WPCode or Insert Headers and Footers
  • Or add directly to your theme's header.php
  • Do not add to interior pages
<script type="application/ld+json">
{ ... your Website schema ... }
</script>

Search Box Requirements

1

Working Search Function

Your site must have a working search function that accepts URL parameters

2

URL Template Format

Use {search_term_string} as the query placeholder in your URL

3

Homepage Only

Only place Website schema on your homepage, not sitewide

4

Combine with Organization

Use alongside Organization schema for maximum visibility

💡

Best Practices

Site Name Guidelines: Use your official brand name as it appears in search results. Keep it consistent with your Organization schema name.

Search URL Testing: Before implementing, manually test your search URL by replacing {search_term_string} with a test query. Example: https://yoursite.com/search?q=testing

Combine Schemas: Website schema works best when paired with Organization schema. Place both in your homepage <head> section for optimal results.

No Guaranteed Display: Google decides whether to show the Sitelinks Search Box. Having proper schema improves chances but doesn't guarantee display.

Schema Marquee Section