Breadcrumb microdata help

為{幸葍}努か 提交于 2019-12-23 17:40:31

问题


I'm trying to help Google generate appropriate breadcrumb details for my website. I am currently using this as the breadcrumb:

<div id="breadcrumb">
<span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
    <a href="http://www.radonsystems.net" class="crumb" rel="up" itemprop="url">
        <span itemprop="title">Home</span>
    </a>
    <span class="arrow">
        <span>&raquo;</span>
    </span>
</span>
<span class="crust" itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">
    <a href="http://www.radonsystems.net/business/profile.2" class="crumb" rel="up" itemprop="url">
        <span itemprop="title">Business Profile</span>
    </a>
</span>
</div>

However, this isn't helping Google at all, even the testing tool does not generate the breadrumb link, though it does see the microdata and correctly identifies it as breadcrumb microdata.

Any ideas?


回答1:


Instead of using the microdata schemas at data-vocabulary.org, I would use the newer ones at http://schema.org which is the joint project by Google, Yahoo and Microsoft. It has a wider range of schemas to be more expressive with your data modeling.

In particular, the webpage schema is what you want for defined breadcrumb microdata. http://www.schema.org/WebPage




回答2:


What I did was to add a new column, in which numbers could be entered as format: 1,3,4. Then, I retrieved it from the database, exploded it into an array, and for each number, I'd retrieve information about that link id: url, text, then output it.




回答3:


If you want to list your pages, you need to create a version that contains enough substance that should be sought.



来源:https://stackoverflow.com/questions/5057571/breadcrumb-microdata-help

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