Schema.org Organizational markup Issue

余生颓废 提交于 2019-11-28 14:34:30
unor

Instead of hiding an element, you could simply use link (for URIs) or meta (for text) elements. They are typically hidden by default. If used for Microdata, link and meta are allowed in body.

Assuming that you want to visually hide the URL as well as the logo:

<div itemscope itemtype="http://schema.org/Organization">
 <link itemprop="url" href="http://example.com/">
 <link itemprop="logo" href="http://example.com/logo.png">
</div>

If this is considered by parsers (like search engines) is up to them. It’s valid HTML + Microdata.

This question is more than one year old, but since I found it via Google, I figured it will keep popping up in the future - so here's my update of the existing answers:

You don't need to worry about visible elements anymore, you can simply use this instead:

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

As far as my understanding goes, you only need to add this code to the homepage.

(This information was added to the OP's article on 21 October 2014.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!