Google’s Sitelinks Searchbox and Yoast SEO

Google’s Sitelinks Searchbox and Yoast SEO

January 05th, 2017 – 18 Comments

A couple of years ago, Google introduced the Sitelinks Searchbox. When activated, this search box appears under the main search result from a given brand. So after searching for the brand in Google, you can directly use the search engine of the online store or site where you want to look something up. The results will be presented on the search results page of the relevant site.

Google sitelinks searchbox

An example of a Sitelinks Searchbox

Adding a Sitelinks Searchbox to your site

It’s not that difficult to make your site eligible for a Sitelinks Searchbox. 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 Searchbox. So, let’s run through steps one to three:

Optimize your site for search & social media and keep it optimized with Yoast SEO Premium »

Yoast SEO for WordPress pluginBuy now » Info

1. 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 you should see search results. If you don’t see it, you’ve either made a conscious decision to move your search engine elsewhere, or you might need to fix your theme.

2. Add the necessary markup

Another very simple step, assuming that A, you found your search engine under step one and it’s the default WordPress one and B, you’re using our free or premium Yoast SEO plugin. If you use the latest version of our plugin, you’ve already got the code right on your site.

It could be that you don’t use the default search engine, in that case, you’ll need to change the URL using the built-in filter. If you don’t have a search engine, get one.

If you don’t use Yoast SEO, you can add the necessary code by hand via an individual block of Schema.org code for structured data. Here’s a piece of example code from Google’s documentation, in this same document you’ll also find the requirements for a valid technical implementation. This uses JSON-LD to mark up the code in an efficient and readable way.

3. Set up a preferred canonical URL for your homepage

Step three, and yet again, this one’s easy. When you use Yoast SEO, this has already been done for you. However, if you don’t have it installed, you’ll realize after reading this article that now is as good a time as any to install it. If you want – or need – to do it by hand, you can read up on canonical URL’s in our ultimate guide to rel=canonical.

When you have done all of this and Google deems your site eligible, you might eventually see something like the example above in the search results.

Conclusion

As said before, it is not too hard to get your site ready for a Sitelinks Searchbox. 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.

Read more: ‘Structured data with Schema.org: the ultimate guide’ »


18 Responses to Google’s Sitelinks Searchbox and Yoast SEO

  1. OM Studio
    By OM Studio on 18 January, 2017

    Excellent article Edwin. I use your plugins on most of my sites. Cheers!

  2. Doronize
    By Doronize on 15 January, 2017

    So all these are just what i need to do or set for me to get my sitelink showing for my website?

  3. Ashoksinh Gohil
    By Ashoksinh Gohil on 14 January, 2017

    Right, now I understand!
    But for whom this article, if I already use Yoast SEO than I think, I had to do nothing, Right ?
    i think this article only for who not using Yoast Article ! :}

  4. Ovidiu Nicolae
    By Ovidiu Nicolae on 13 January, 2017

    Excellent guide and constant updates for the Yoast plugin. Thank you!

  5. Kevin Bouilleaux
    By Kevin Bouilleaux on 12 January, 2017

    Thank you to keep your great plugin update according Google’s updates.

  6. Diseño Web | Sergio
    By Diseño Web | Sergio on 11 January, 2017

    Nice article Edwin! Thank you very much to share with us. All the bes from Spain!

  7. Anil Agarwal
    By Anil Agarwal on 11 January, 2017

    Great one.

    Recently I’ve even written a massive post around getting google sitelinks. Basically, you need to know one thing: YOU cannot add any sitelinks. Google adds them through its own set of automated algorithms.

    If you’re looking for quick ways to get them, make sure to attract as many links and social shares as possible to your best posts. It gets easier.

  8. Kurt Puterbaugh
    By Kurt Puterbaugh on 10 January, 2017

    I am having a difficulty getting past the first stage. I enter:
    iinspectatlantahomes.com/?s=query and it takes me directly to my site and a Nothing Found page.
    I was unaware that I had changed settings and when I go to my theme settings I don’t find anything relevant to change either.
    Am I missing something?

    • Fred
      By Fred on 10 January, 2017

      The “?s=query” statement says that a search on your site is done on the word “query”. Probably you do not have any pages with the word “query” on it!

  9. Ryan Irving
    By Ryan Irving on 9 January, 2017

    Nice article Edwin but I was wondering how (if possible) to choose which pages Google displays as site links?

    • Edwin Toonen
      By Edwin Toonen on 10 January, 2017

      Hi Ryan. Google automatically chooses the pages it shows as site links. Since you can’t choose them, you have to work on your site structure and write great content to get the best results in there. Google picks the pages it thinks visitors find most valuable. In Search Console, you used to be able to demote pages that you found inappropriate or incorrect. As of October 2016, that option no longer exists, unfortunately. See this Google Webmaster post for info: https://plus.google.com/+GoogleWebmasters/posts/b4WcMeLgbAL.

  10. Matthew Kushinka
    By Matthew Kushinka on 9 January, 2017

    Thanks for the how-to explanation, Edwin. However, what I don’t really see emphasized here is the justification. In other words, what’s the benefit besides saving the user one click? I can see it being useful if I’m searching for airline tickets or a book on Amazon, but I’m not sure if customers coming to our site would use it. Do you know of any data on visitor usage of the Sitelinks Searchbox? Thanks as always for the great work you guys do!

    • Edwin Toonen
      By Edwin Toonen on 10 January, 2017

      Hi Matthew. Thanks for your kind words. I don’t have any data on hand about the use of site links, but it’s not hard to imagine that they might enhance your CTR. With site links, your most important pages are directly visible when visitors search for your brand name. It’s an opportunity to make a great impression. The search box is a valuable addition as well, if you’re eligible for one.

  11. Simon
    By Simon on 9 January, 2017

    Thank you, useful information!

  12. Weblogman
    By Weblogman on 8 January, 2017

    Was so usefull
    Thanks for this topic and your biggest SEO Plugin

  13. Jayce Ooi
    By Jayce Ooi on 7 January, 2017

    Need to build own brand first before doing this. Nobody is searching for me right now. :p

  14. Aman
    By Aman on 6 January, 2017

    Thanks, I was just Searching for this and got on your page

  15. App Shah
    By App Shah on 5 January, 2017

    Thanks for nice article. Any idea why Yoast doesn’t have sitelinks searchbox? I also noticed the same for Crunchify.

    Do you think it’s related to @id attribute, yoast seo plugin is adding? Created https://github.com/Yoast/wordpress-seo/issues/6382


Check out our must read articles about Analytics