Google’s Sitelinks Searchbox on WordPress, with or without Yoast SEO

how to add google sitelink searchbox in my website

Hello User

A Couple of Years ago, Google introduced the Sitelinks Searchbox. When Activated, this Search Box appears under the main URL for a Given Brand in the Search Result, above its sitelinks, hence the name. When you search for that Brand in Google, you can directly use the site’s Search Engine.

The Result will be Presented on the search Result page of the relevant Site.

Google’s Sitelinks Searchbox on WordPress, with or without Yoast SEO

How to add a Sitelinks Search box to your Site.

It’s not that difficult to make your site eligible for a Sitelinks Search box. The Process consists of Just three Steps, and if you are a Yoast SEO user, it is even Easier.
This Process Takes care of the technical side, but in the end, Google Determines if your site gets a Search box.
To be Honest: Google Does not show this Sitelinks Search box for Most Sites. So, Lets run Through the required Step.
Verify you Have a Functioning Search Engine
For 99.5% of WordPress sites, this one is simple: you type example.com/?s=query (Replacing example.com with your site’s URL and query with the query of your choice) and you should see search Result. If you don’t see Search, and you’ve not made a conscious decision to move your search engine Elsewhere, you might need to fix your theme.
 
Add the necessary Markup (Yoast SEO does this automatically)

Adding the markup is simple if you’re on WordPress and use Yoast SEO. in that case, all the necessary code will be added automatically. There are exceptions of course: It could be that you don’t use the default search engine, in that case, you need to change the URL using the Built in Filter.

If you don’t use Yoast SEO, you can add the necessary code by hand via a Piece of Schema.org Structured data. The Screenshot below shows a Piece of Example code from Google’s documentation in the Same document you also find the requirements for a valid technical implementation. This uses JSON-LD to mark up the code in an efficient and Readable way.

 

Google’s Sitelinks Searchbox on WordPress, with or without Yoast SEO

Set ups a Preferred canonical URL for your Homepage (Yoast SEO does this automatically)

Step three, and again, this one is easy. Google uses the canonical to Determine the correct URL for your site. When you use Yoast SEO, this Canonical will automatically be set for you. if 
you want -or need- do it by hand.
When you have done all of this and Google deems your site Eligible, You might see Something like the Example above in the search result.
Google’s Sitelinks Searchbox on WordPress, with or without Yoast SEO

Chek the Sitelinks Search box Result in Google Search Console

A few days after enabling this you should have a Sitelinks Search box report in Google Search console.

For those of you who have had Yoast SEO for a While, this report should already be there. if there are Error s in that Report, Find out What they are and fix them. If not it look Something like This:
Google’s Sitelinks Searchbox on WordPress, with or without Yoast SEO

Chek the Rich Result Testing Tool

Using Google ‘s Rich Result Testing Tools, you can see if your site is eligible for rich result.
Simply open the tool, enter the URL and run the test. Google shows a report like the one below.
In this case, it correctly Discovers a Sitelinks Search Box on our site.
Google’s Sitelinks Searchbox on WordPress, with or without Yoast SEO

Conclusion

As Said Before, it is not too hard to get to get your site ready for a Sitelinks Search Box. If you use our Yoast SEO plugin, the necessary code is already Built in.
Now you just Have to wait and see if Google Deems your Site Eligible and Shows a Search Box.
Thank You
%d bloggers like this: