搜索结果中的Google搜索框无效

时间:2015-08-04 05:16:54

标签: drupal seo search-engine

我关注谷歌教程对于谷歌搜索结果中的搜索框,就像上面的屏幕截图

我在我的网站上添加了此代码

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://www.example.com/",
"potentialAction": {
"@type": "SearchAction",
  "target": "https://www.example.com/search/node/{keys}",
  "query-input": "required name=keys"
 }
 }

  </script>

我做错了吗?我的网站使用Drupal 7。

0 个答案:

没有答案