gui-2311259_640

How to enable sitelinks search box using expertrec custom search

Rate this article

Share this article

 

Site links search box is the search box your get in google search results when you search for your website name in google search. It looks similar to this.sitelinks search box

Here is how to get site-links search box in your site.

  1. Create a custom search engine using expertec from https://cse.expertrec.com/?platform=cse
  2. Make sure you have chosen search results in new page method of User interface.
  3. Add this code to the head section of all your pages.
    <script type="application/ld+json">
    {
      "@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"
      }
    }
    </script>

     

    1. Make sure you replace url with your website URL.
    2. Replace target with your website search URL pattern.

Please note that you might need significant search traffic for the sitelinks search box to appear in google search results.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published.