对机构标识(logos)使用 schema.org 标记
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
2013年5月16日星期四
如今,我们推出了一项新的支持,可让您对公司商标或机构标识
使用
schema.org 标记。这是一种将您的网站与标志性图片关联起来的方式。我们希望您能够指定要在 Google 搜索结果中用作自己标识的图片。
如果您使用了
schema.org
机构标记
,就可以向我们的算法指示首选标识的位置。例如,某个首页为
www.example.com
的企业可以在其首页上添加如下标记(该标记使用了可见的网页内元素):
<div itemscope
itemtype="https://schema.org/Organization">
<a itemprop="url"
href="https://www.example.com/">Home</a>
<img itemprop="logo"
src="https://www.example.com/logo.png" />
</div>
2014年10月23日更新:您也可以使用其他语法比如这个JSON-LD代码:
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Organization",
"url": "https://www.example.com/",
"logo": "https://www.example.com/logo.png"
}
</script>
该示例会指示
Google,此图片已指定为网站
首页的公司标识(首页也包含在标记中)。如有可能,该图片还会被用在 Google
搜索结果中。这类标记对于我们的算法而言是一个强有力的信号。例如,当我们根据用户的查询在右侧显示相关知识图时,算法就会根据该标记优先显示此图片。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2013-05-01。
[null,null,["最后更新时间 (UTC):2013-05-01。"],[[["\u003cp\u003eThis post explains how to specify your organization's logo for Google Search results using schema.org markup.\u003c/p\u003e\n"],["\u003cp\u003eYou can indicate your preferred logo using the \u003ccode\u003eOrganization\u003c/code\u003e markup within visible on-page elements or via JSON-LD.\u003c/p\u003e\n"],["\u003cp\u003eThis markup helps Google identify and potentially use your logo in search results, such as in the Knowledge Graph.\u003c/p\u003e\n"],["\u003cp\u003eThe post may contain outdated information, and updated guidance on logo markup can be found in Google's documentation.\u003c/p\u003e\n"]]],["The post announces support for schema.org markup for organization logos, allowing users to specify their preferred logo image for Google search results. Using `Organization` markup, websites can indicate the logo's location via visible on-page elements (HTML) or JSON-LD code. This markup signals to Google's algorithms which image to use in search results, such as in the Knowledge Graph. It also mentions the availability of the Webmaster Help Forum for any related questions.\n"],null,["# Using schema.org markup for organization logos\n\n| It's been a while since we published this blog post. Some of the information may be outdated (for example, some images may be missing, and some links may not work anymore). Check out our documentation about [logo markup](/search/docs/appearance/structured-data/organization#logo).\n\nWednesday, May 15, 2013\n\n\nToday, we're launching support for the schema.org markup for organization logos, a way to connect\nyour site with an iconic image. We want you to be able to specify which image we use as your logo\nin Google search results.\n\n\nUsing schema.org\n[`Organization` markup](https://schema.org/Organization),\nyou can indicate to our algorithms the location of your preferred logo. For example, a business\nwhose home page is www.example.com can add the following markup using visible on-page elements on\ntheir home page: \n\n```\n\u003cdiv itemscope itemtype=\"https://schema.org/Organization\"\u003e\n \u003ca itemprop=\"url\" href=\"https://www.example.com/\"\u003eHome\u003c/a\u003e\n \u003cimg itemprop=\"logo\" src=\"https://www.example.com/logo.png\" /\u003e\n\u003c/div\u003e\n```\n|\n| **Update 21 October 2014**: You can also use any other supported syntax such as this JSON-LD\n| code: \n|\n| ```\n| \u003cscript type=\"application/ld+json\"\u003e\n| {\n| \"@context\": \"https://schema.org/\",\n| \"@type\": \"Organization\",\n| \"url\": \"https://www.example.com/\",\n| \"logo\": \"https://www.example.com/logo.png\"\n| }\n| \u003c/script\u003e\n| ```\n\n\nThis example indicates to Google that this image is designated as the organization's logo image\nfor the home page also included in the markup, and, where possible, may be used in Google search\nresults. Markup like this is a strong signal to our algorithms to show this image in preference\nover others, for example when we show Knowledge Graph on the right hand side based on users'\nqueries.\n\n\nAs always, please ask us in the\n[Webmaster Help Forum](https://support.google.com/webmasters/threads?hl=en&thread_filter=(category:structured_data))\nif you have any questions.\n\n\nPosted by [RJ Ryan](https://plus.google.com/117143425882245613158/?rel=author),\nGoogle Engineer"]]