Wrong schema markup for user comments

I noticed that the schema markup for comments on my site is wrong. Here is one example on my site that I have come across.

    <h2 class="h-comments-title"><span>Comments <small>2</small></span></h2>
<ol class="x-comments-list">
      <li id="li-comment-1310" itemprop="review" itemscope itemtype="http://schema.org/Review"class="comment even thread-even depth-1">

Comments are being marked up as “reviews” and they are simply comments on blog posts and pages of my site. So I’m getting errors in google search console, specifically: “The review has no reviewed item specified.” I have no idea why Wordpress/xtheme would add “review” schema markup for what is obviously visitor comments.

How do I correct this?

Edited to add that I just installed Snippet today to see if there was a way to change the comment markup (there isn’t) and I do not have any other plugins whose specific purposes is to add schema markup to pages.

Hello Michelle,

Thanks for writing in! Can you please confirmed that you have updated to the latest versions?
Our latest versions are:

  • X theme 6.3.6
  • Cornerstone 3.3.6

This latest release contains fixes for several issues so be sure to check out the changelog (http://theme.co/changelog/).

_After doing the updates, always remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.-

Please let us know how it goes.

I have everything up to date in a staging environment. The comments still have the incorrect “review” schema markup.

Hey Michelle,

I confirm that the Review Schema is present in the single post.

I will post this in our issue tracker to let our development team know of this case in due time.

For now, you will need to copy the Stack’s Comment function which you can find in x\framework\functions\frontend. For example, if you’re using Ethos Stack, you’ll open up ethos.php the x_ethos_comment function to your child theme’s functions.php and modify it from there.

If you will not be using WooCommerce, you can directly change the itemtype from http://schema.org/Review to https://schema.org/Review. You can do the same for other attributes.

For more details, please see the differences between https://schema.org/Review and https://schema.org/Comment

We’re sorry for the inconvenience.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.