pull-icon
Indian Bloggers Community
Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling
your ad blocker on our website. We promise displaying clean and relevant ads only

Post your Question   |   View Forum   |   Categories

Get answers from community

1 Replies

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


SEO & Monetization

Rahul Gupta

15 days 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



Jaimin Brahmbhatt

11 days ago     |    Owner of 2 Blog(s): Curious Writers    Tech Hindi   

Thank you for sharing this info


Leave a Reply

Login now to leave reply