SDTT给出错误“未指定评论未指定评论”,但我使用的是“ itemReviewed”属性

时间:2018-11-01 10:16:30

标签: html schema.org microdata google-rich-snippets rich-snippets

我在不同的标签中尝试了itemReviewed,但是它不起作用,并且仍然显示错误:

  

评论未指定评论项目。

https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fasphaltthemes.com扫描。

<!-- testimonial start-->
<section class="new_new_testi" itemprop="review" itemscope itemtype="http://schema.org/Review" >
    <div class="testi_wrap">

        <div class="new_new_testimonial_one">
            <img itemprop="image" src="https://asphaltthemes.com/wp-content/uploads/2017/06/lady.jpg" alt="Tar Pro WordPress theme customer testimonial">
        </div>

        <div class="new_new_testimonial_two" itemtype="http://schema.org/Product">
            <cite itemprop="reviewBody" itemprop="itemReviewed">Thank you for the wonderful customer service you provided! I was anxious about getting my website launched, and had several questions that you answered for me quickly and thoroughly. In a time where quality customer service seems to be a rarity, you stood out. I know that if I have to reach out to you about anything regarding my site in the future, you will be there to assist me almost immediately. THANK YOU!
            </cite>
            <p itemprop="author">- Laura Byrne / <a itemprop="url" target="_blank" href="https://www.facebook.com/LauraByrneStudios">Laura Byrne Studios</a></p>    
        </div>

    </div>
</section>
<!-- testimonial END -->

<!-- testimonial start-->
<div class="customer_testimoinal cst_test" itemprop="review" itemscope itemtype="http://schema.org/Review" >
    <cite itemprop="reviewBody" itemtype="http://schema.org/Product" itemprop="itemReviewed">Love this theme! Very easy to set up and customize, a LOT of great features – especially for the home page. Every request or question I’ve had has been addressed within 24 hours of sending an email, and the responses have been very helpful.</cite>
 <div>
    <img itemprop="image" src="https://asphaltthemes.com/wp-content/uploads/2017/06/KcvanHout-300x260-1-1.jpg" alt="Tar Pro WordPress theme customer testimonial">
 </div>
 <p>- <a itemprop="author" itemprop="url" href="https://wordpress.org/support/topic/great-super-responsive-to-requests/">Kelly Vanhout</a></p>
</div>
<!-- testimonial END -->

有什么办法解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

您正在同一元素上使用两个itemprop属性(这是不允许的),并且您缺少了itemscope属性(如果使用itemtype属性):

<cite itemprop="reviewBody" itemtype="http://schema.org/Product" itemprop="itemReviewed">
<cite itemprop="reviewBody" itemprop="itemReviewed">

您想要的是这样的

<div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Product">
  <!-- an item value; you can use properties (itemprop) inside this 'div' -->
</div>
<p itemprop="reviewBody">
  <!-- a text value -->
</p>