我刚刚接触谷歌问为什么富人snipets没有显示他们的结果,他们回答以下丰富网页摘要无法显示,因为隐藏Schema.org标记
URL: http://www.theprinterdepo.com/hp-color-laser-4700dn-printer-q7493a-r
Markup Type: Product, Reviews
Hidden content: <span itemprop="reviewCount">6</span>
我在IE开发者工具检查和确实的它的隐藏,但它不隐藏在我的HTML,任何想法我做错了什么?
<?php if ($this->getReviewsCount()): ?>
<div class="ratings">
<?php if ($this->getRatingSummary()):?>
<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<div class="rating-box">
<div class="rating" style="width:<?php echo $this->getRatingSummary() ?>%"><meta itemprop="ratingValue" content="<?php echo $this->getRatingSummary()/10 ?>"/></div>
<span itemprop="reviewCount"><?php echo $this->getReviewsCount() ?></span>
</div>
</span>
<?php endif;?>
<p class="rating-links">
<a href="<?php echo $this->getReviewsUrl() ?>"><?php echo $this->__('%d Review(s)', $this->getReviewsCount()) ?></a>
<!--<span class="separator">|</span>-->
<!--<a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Add Your Review') ?></a>-->
</p>
</div>
<?php elseif ($this->getDisplayIfEmpty()): ?>
<p class="no-rating"><a href="<?php echo $this->getReviewsUrl() ?>#review-form"><?php echo $this->__('Be the first to review this product') ?></a></p>
<?php endif; ?>
@Tim URL被在所述第一代码段[http://www.theprinterdepo.com/hp-color-laser-4700dn-printer-q7493a-r](http://www.theprinterdepo所示.com/hp-color-laser-4700dn-printer-q7493a-r) – CCBlackburn