今天我無意間在google搜尋引擎打google既然發現搜尋引擎右側出現了google的logo圖片及一些社群的連結

讓我很好奇,於是我就去研究一下國外的文章及google文章,發現到原來這些做法可以使用schema.org(結構化)來處理.下面我就來介紹schema.org(結構化)的logo語法及sacebook和google plus.

  1. logo的語法複製到你的</body>之前,請注意就是把紅色的地方改成你們自己的網址及logo的路徑.

<script type="application/ld+json">
{
“@context": “http://schema.org",
“@type": “Organization",
“url": “http://www.example.com“,
“logo": “http://www.example.com/images/logo.png"
}
</script>

 

  1. 社群的語法, 請注意就是把紅色的地方改成你們自己的網址及facebook的路徑.

<script type=“application/ld+json">
{ “@context" : “http://schema.org",
  “@type" : “Person",
  “name" : your name,
  “url" : http://www.your-site.com,
  “sameAs" : [ http://www.facebook.com/your-profile,
      http://www.linkedin.com/in/yourprofile,
      http://plus.google.com/your_profile]
}
</script>

以上的語法裝好之後,請記得到google結構化工具去測試一下是否成功.

 

推薦:統包工程熱分析儀拆除工程專業拆除野店鄉野小吃

arrow
arrow
    文章標籤
    google搜尋引擎 scheama.org
    全站熱搜

    尼康數位科技 發表在 痞客邦 留言(0) 人氣()