skinnybloke Posted December 12, 2014 Share Posted December 12, 2014 (edited) Hi - I am trying to set-up Google Sitelinks Search Box for my website See: https://developers.google.com/webmasters/richsnippets/sitelinkssearch I have added this code into the HEAD of header.tpl <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "{$base_uri}", "potentialAction": { "@type": "SearchAction", "target": "{$base_uri}search?controller=search&orderby=position&orderway=desc&search_query={literal}{search_term_string}{/literal}", "query-input": "required name=search_term_string" } } </script> This gives me the following javascript error when I have 'Move JavaScript to the end' enabled in the performance screen. There are no errors when it is disabled. SyntaxError: missing ; before statement ...[spam-filter]);[spam-filter]);;{"@context":"http://schema.org","@type":"WebSite","url":"https://www.l Any ideas? Edited December 12, 2014 by skinnybloke (see edit history) 1 Link to comment Share on other sites More sharing options...
Gitesh Posted January 16, 2015 Share Posted January 16, 2015 i m facing same problem..if u got any solution then plzz post here. Link to comment Share on other sites More sharing options...
Recommended Posts