我在同一页上为同一个属性使用了3次itemscope itemtype="http://schema.org/LocalBusiness"
我不确定这样做是否正确,但因为我的页面结构有许多不同的块和div,这是我在使用google的结构化数据测试工具进行测试时唯一能让它工作的方法。
这是否意味着谷歌认为这些数据来自3个不同的业务?
<div itemscope itemtype="http://schema.org/LocalBusiness">
<h3><span itemprop="name">My Business Name</span></h3>
</div>
</div>
</div>
<div class="column mcb-column one-third column_column column-margin-10px">
<div class="column_attr align_center" style="">
<h3>Darbo Laikas:</h3>
</div>
</div>
<div class="column mcb-column one-third column_map ">
<script>
function google_maps_56c99fa96b132() {
var latlng = new google.maps.LatLng(54.718959, 25.302484);
var draggable = true;
var myOptions = {
zoom: 13,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
draggable: draggable,
zoomControl: true,
mapTypeControl: false,
streetViewControl: false,
scrollwheel: false
};
var map = new google.maps.Map(document.getElementById("google-map-area-56c99fa96b132"), myOptions);
var marker = new google.maps.Marker({
position: latlng,
map: map
});
}
jQuery(document).ready(function($) {
google_maps_56c99fa96b132();
});
</script>
<div class="google-map-wrapper no_border">
<div class="google-map" id="google-map-area-56c99fa96b132" style="width:100%; height:200px;"> </div>
</div>
</div>
<div class="column mcb-column one-third column_column column-margin-">
<div class="column_attr" style="">
<div itemscope itemtype="http://schema.org/LocalBusiness">
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<i class="icon-location"></i><span itemprop="streetAddress"> 70 My street address</span>, <span itemprop="addressLocality">London</span>, <span itemprop="postalCode">09124</span>
<br/>(Interjero centras "Klasikos Namai")
<br/>
<br/><i class="icon-phone"></i><a href="tel:+44 777 22222" itemprop="telephone">(8-777) 22222</a>
<br/>
<br/><i class="icon-mail"></i><a href="mailto:[email protected] " itemprop="email">[email protected]</a>
</div>
</div>
</div>
</div>
<div class="column mcb-column one-third column_opening_hours ">
<div class="opening_hours">
<div class="opening_hours_wrapper">
<div itemscope itemtype="http://schema.org/LocalBusiness">
<ul>
<li>
<label>
<time itemprop="openingHours" datetime="Mo-Fr 10:00-18:00"></time>Monday - Friday</label><span>10:00–18:00</span>
</li>
</ul>
<ul>
<li>
<label>Saturday - Sunday</label><span>Uždaryta</span>
</li>
</ul>
</div>
</div>
</div>
最佳答案
这是错误的,因为根据标记,该页上有三个本地企业。
您应该使用itemid,以便所有itemscope引用相同的localbusiness。
将itemid="mybusiness"
添加到每个itemscope。
_________