pull-icon
Indian Bloggers Community

View Forum   |   Post your Question   |   Forum Categories

Get answers from active community members

1 Replies

How do I get a search box to appear in my sitelinks?


SEO & Monetization

Rahul Gupta

3 months ago

To get your own search box, the only things you need is a website with a search box of its own and the following piece of Schema code which you need to add to the HTML of your homepage…


{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://example.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://example.com/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}


Make sure to change "URL" & "target" with your own website URL.

That's it. To check if it works, submit your site to the structured data testing tool


Can you answer this question? Leave a reply now



Jaimin Brahmbhatt

3 months ago     |    Owner of 2 Blog(s): Curious Writers    Tech Hindi   

Thank you for sharing this info


Leave a Reply

Login now to leave reply