Structured Data·Lovable
Structured DataLovable

Add WebSite schema with SearchActionLovable

Without WebSite + SearchAction schema, Google cannot show a search box under your brand result — missing a big SERP real-estate opportunity.

rocket_launch

Fixing this in Lovable

AI full-stack app builder (React + Vite + Supabase)

Lovable apps ship fast but skip most SEO and security basics out of the box. Paste the prompt below into your Lovable chat and the fix rolls out across the project in one pass.

Using a different tool? Pick your stack:

The prompt for Lovable

Copy and paste this into your Lovable chat exactly as-is.

Fix my Lovable app — please make these exact changes in the Lovable editor:

Add WebSite schema with SearchAction

1. Add WebSite schema with a SearchAction so Google can show a sitelinks searchbox.

Why this matters

When someone searches your brand name, Google can show a search box directly under the result — searching that box goes to your internal search page. Only eligible sites get this (usually larger brands), and WebSite schema with SearchAction is the prerequisite.

You need actual internal search for this to work. If you do not have search, skip this schema.

How to use this prompt in Lovable

  1. 1. Open your Lovable project.
  2. 2. Copy the prompt above with the copy button.
  3. 3. Paste into the Lovable chat and send.
  4. 4. Review the diff, accept the changes, redeploy.
  5. 5. Verify the fix using the checklist below.

Common mistakes to avoid

  • error_outlinePointing SearchAction to a broken search URL.
  • error_outlineAdding WebSite schema without Organization — pair them.
  • error_outlineCopying the example schema without replacing the search URL template.

How to verify the fix worked

  • check_circleRich Results Test recognizes the schema.
  • check_circleAfter a few weeks, branded search may show sitelinks search box.

Frequently asked questions

How long until the search box appears?expand_more
Weeks to months. Google grants it based on brand authority and schema accuracy.
Do I need WebSite on every page?expand_more
Only on the homepage.

Want all 34 prompts tailored to your Lovable site?

Pantra scans your site in 10 seconds, detects the stack, and generates the exact prompts that apply — only the ones you actually need.

Scan my site

Related Lovable prompts