Syntax error sitelinks searchbox - Google Search Console

IshayFr
New Member
3 0 0

Hi, I want to add my Shopify store to Google Search Console but I get error of "Syntax error sitelinks searchbox".

 

I tried adding the sample code and edited it like that:

  <html>
  <head>
    <title>GemDrives - הבית לשרת שלך</title>
    <script type="application/ld+json">
    {
      "@context": "https://gemDrives.co.il",
      "@type": "WebSite",
      "url": "https://gemDrives.co.il/",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://www.gemdrives.co.il/search?q={search_term_string}",
        "query-input": "required name=search_term_string"
      }
    }
    </script>
  </head>
  <body>
  </body>
</html>

and put it in my search.liquid file.

This didn't help and I still get the error from Google.

What am I doing wrong? Thank you. 

0 Likes