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.
- Homepage markupWebSite + SearchAction in the page
- Google reads itName and URL can still be used
- Search box in resultsRetired in Nov 2024
- Visitor searches your site from GoogleNo longer possible
The markup is still read, but the search box step no longer exists.
Before late 2024
Valid WebSite + SearchAction markup could earn a search box under your brand result.
November 2024
Google removed the sitelinks search box from results.
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
Open your homepage source
Right-click the homepage, choose View page source, and search for
"WebSite"andapplication/ld+json.Count the WebSite blocks
You should find one. Two or more usually means a theme and an SEO plugin are both adding it.
Check name and url
nameshould be your real site name.urlshould be your canonical homepage, with the same https and www choice you use everywhere.Check any SearchAction
If present, open the
urlTemplatewith a real term in place of{search_term_string}. It should load a working results page.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.
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.
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebSite","name":"Example Shop","alternateName":"Example","url":"https://www.example.com/"}
</script><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>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.
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.
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.
Check the theme
Open Online Store > Themes > Edit code and search
theme.liquidand snippets forWebSite. Whether markup exists depends on your theme and any SEO app.Limit it to the homepage
Wrap your block in
{% if template == 'index' %} ... {% endif %}so it prints only on the homepage.Point the search URL at /search
If you keep a SearchAction, use
https://yourstore.com/search?q={search_term_string}.
Find any Custom HTML tag
Look for tags that inject
ld+jsoncontainingWebSite.Restrict the trigger
Use a Page View trigger with Page Path equals
/so it fires on the homepage only.Avoid duplicates
If the site already outputs WebSite markup, pause the GTM tag so there is only one.
Open homepage settings
In the Pages panel, open the homepage settings and go to Custom code.
Paste one block
Add the WebSite JSON-LD inside the Head code box. Do not add it in the sitewide custom code.
Render it on the homepage template only
Put the script in the head of the homepage template, not the shared layout used by every page.
Generate JSON with a serializer
Build the data in code and output it with your language's JSON encoder to avoid trailing commas and unescaped quotes.
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
- 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
- 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.
Related issues
- SEO-223JSON-LD syntax errors (trailing commas, unescaped quotes)Fix guide
- SEO-225Duplicate conflicting schema from theme and pluginFix guide
- SEO-209Organization schema missing (logo, sameAs, contact)Fix guide
- SEO-224Required properties missing (name, image) causing errors in Search ConsoleFix guide
- SEO-232sameAs links to dead or wrong social profilesFix guide
- SEO-208No structured data at allFix guide