How Do I Add a Search Box in Search Results?

How Do I Add a Search Box in Search Results?

A sitelinks search box will show in results as you search for certain companies or if you add ‘website’ to a company name. When the search box appears, you’re able to search throughout the website. Adding a sitelinks search box increases a visit to your website because you have more possible results that are all from your website. Because of this, there won’t be any paid or organic results from your rival companies.

If you’re unable to add it with the WordPress plugin, Sitelinks Search Box, you can use Schema markup. Add the following Schema code to the HTML of your homepage:

< script type=”application/ld+json”>

{

“@context”: “http://schema.org”,

“@type”: “WebSite”,

“url”: “https://www.example.com/”,

“potentialAction”: {

“@type”: “SearchAction”,

“target”: “https://query.example.com/search?q={search_term_string}”,

“query-input”: “required name=search_term_string”

}

}

< /script>

You’ll want to make sure that you change out the “url” and “target” examples to your website’s URLs. You can check if the Schema code worked by submitting your website to structured data testing tool.

admin
No Comments

Sorry, the comment form is closed at this time.