Skip to content
FunnelGuard

Fix guide by FunnelsGuard

WebSite schema and sitelinks searchbox: what's wrong, how to fix

SEO-231Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

WebSite schema is structured data (a machine-readable label, usually JSON-LD) that tells search engines the name and address of your site. It can also include a potentialAction of type SearchAction, which described your internal search URL. Google used that to show a sitelinks search box: a search field under your brand result.

Google retired that search box in November 2024. The issue today is usually one of these: a SearchAction with a wrong URL template, WebSite markup on every page instead of the homepage, two WebSite blocks from a theme and a plugin, or a missing or wrong name.

Why it costs you leads or sales

The direct cost is small. A broken SearchAction no longer loses you a search box, because the feature is gone. The risks are indirect: a wrong or conflicting site name in results, markup errors that make your structured data look untrustworthy to tools, and AI or search systems reading an incorrect homepage URL.

A SearchAction that points to a search URL that returns errors can also send tools and testers to a dead page. It is clutter worth cleaning, not an emergency.

How a stale SearchAction plays out
  1. Homepage markupWebSite + SearchAction in the page
  2. Google reads itName and URL can still be used
  3. Search box in resultsRetired in Nov 2024
  4. Visitor searches your site from GoogleNo longer possible

The markup is still read, but the search box step no longer exists.

What changed
  1. Before late 2024

    Valid WebSite + SearchAction markup could earn a search box under your brand result.

  2. November 2024

    Google removed the sitelinks search box from results.

  3. Now

    The SearchAction does nothing visible. Existing markup is harmless if valid, but stale or broken copies are worth tidying.

How to check if your site has it

Check your WebSite markup
  1. Open your homepage source

    Right-click the homepage, choose View page source, and search for "WebSite" and application/ld+json.

  2. Count the WebSite blocks

    You should find one. Two or more usually means a theme and an SEO plugin are both adding it.

  3. Check name and url

    name should be your real site name. url should be your canonical homepage, with the same https and www choice you use everywhere.

  4. Check any SearchAction

    If present, open the urlTemplate with a real term in place of {search_term_string}. It should load a working results page.

  5. Run a validator

    Paste the URL into the Schema Markup Validator at validator.schema.org to catch syntax errors. Google's Rich Results Test no longer has a sitelinks search box report.

  6. Check inner pages

    View source on a product or blog page. WebSite markup there is unnecessary and often a sign of a theme repeating it sitewide.

How to fix it

Aim for one WebSite block, on the homepage, with an accurate name and url. Keep the SearchAction only if it is correct, or remove it. Removing it has no visible effect now.

Minimal valid WebSite markup (homepage only)html
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebSite","name":"Example Shop","alternateName":"Example","url":"https://www.example.com/"}
</script>
Optional: a correct SearchActionhtml
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebSite","name":"Example Shop","url":"https://www.example.com/","potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.example.com/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}
</script>
Fix it on your platform
  1. Find the source

    SEO plugins such as Yoast SEO and Rank Math output WebSite schema by default. Check your theme too, as some add their own.

  2. Set the site name

    In your SEO plugin's general or site settings, set the website name and alternate name. Also check Settings > General for the Site Title.

  3. Remove the duplicate

    If the theme also outputs WebSite markup, turn that option off in the theme settings, or disable the schema module in one of the two.

Typical cleanup

Before

  • Two WebSite blocks, one from the theme and one from a plugin
  • Name is a placeholder like 'My WordPress Site'
  • SearchAction points at a search URL that returns a 404
  • Markup repeated on every page

After

  • One WebSite block on the homepage
  • Name and alternateName match your brand
  • SearchAction removed, or pointing at a working search page
  • url matches the canonical homepage

How to confirm it's fixed

Confirmation checks
  • View source on the homepage shows exactly one WebSite block
  • validator.schema.org reports no errors for the homepage
  • name and url match your brand and canonical homepage
  • Any SearchAction url opens a working results page
  • Inner pages no longer carry a WebSite block
  • Search Console, Pages report, shows the homepage as indexed with the canonical you expect

How to prevent it happening again

Habits that keep markup clean
  • Choose one source of schema (theme, plugin or tag manager) and disable the others
  • Re-check the homepage source after theme or SEO plugin updates
  • Update name and url whenever you rebrand or change domain or www/https
  • Add a schema check to your site relaunch and migration checklist
  • Test changes on a staging copy before publishing

How FunnelGuard handles this

FunnelGuard does not check WebSite schema or SearchAction markup today. It is a possible future check, not a current feature.

What FunnelGuard does cover nearby is the journeys that make money: a robot visitor runs your lead forms, checkouts and booking or chat buttons on a schedule, checks the tracking hits sent to ad and analytics platforms, and confirms test leads reach your inbox and CRM. A broken search page is not part of that unless you set it up as a journey.

To watch for this manually, re-run the homepage through validator.schema.org after each release, and keep an eye on the Enhancements and Pages reports in Google Search Console. A free FunnelGuard plan (1 site, 2 journeys, daily checks, no card) covers your key funnels while you handle schema by hand.

Questions people ask

Why is my sitelinks search box not showing in Google?

Google removed the sitelinks search box from results in November 2024, so it no longer appears for any site. Valid SearchAction markup will not bring it back. You do not need to fix anything to restore it.

Do I still need WebSite schema in 2025?

It is optional, but still useful. A WebSite block with a correct name, alternateName and url helps Google understand your site name. Keep it on the homepage only.

Should I remove SearchAction from my WebSite schema?

You can. It no longer has a visible effect, and a correct one is harmless. If you keep it, make sure the urlTemplate opens a working search results page. Remove it if your site has no real search.

Where should WebSite schema go on my site?

Put it on the homepage only, as one JSON-LD block in the head or body. Repeating it on every page does not help and often signals duplicate markup from a theme and a plugin.

How do I test my WebSite structured data?

Use the Schema Markup Validator at validator.schema.org to check syntax and types. Also view the page source to confirm there is a single WebSite block. Google's Rich Results Test no longer reports on the sitelinks search box.

Why is Google showing the wrong site name for my website?

Google picks the site name from several signals, including WebSite markup, your title tags and your homepage content. Set a correct name and alternateName in the homepage WebSite markup and keep your homepage title consistent. Changes can take days or weeks to appear.

Can FunnelGuard check my WebSite schema?

Not yet. FunnelGuard monitors forms, checkouts, tracking hits and lead delivery, and a schema check is only a possible future addition. For now, use validator.schema.org and Search Console.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.