Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1236120
    RVgeeks
    Participant

    Hi,

    I’m getting errors in my Google Webmaster Console about structured data errors on my posts… in particular, it doesn’t like the “datetime” attribute on comments. But in looking at the code, the comment threads are all identified using the Schema.org reference for “Review”. Shouldn’t “comments” be using the Schema.org schema for “Comment” (https://schema.org/Comment)?

    Here’s a link to a blog post on my site: Blog Post Comments

    I’m using X Theme version 4.6.4 on WP v 4.6.1 and I’m using the Integrity Stack.

    Is there a way to change the Schema being used for the comment threads on a blog post? Or could you consider updating the X Theme in a future update to use Comment Schema instead of Review for comment threads?

    Thanks!

    #1236394
    Rad
    Moderator

    Hi there,

    Thanks for posting in.

    It uses http://schema.org/Review since comment section is also used on Woocommerce comment section. It’s almost the same as https://schema.org/Comment, they both inherit the properties of both http://schema.org/CreativeWork. WordPress comments use author and description only, in fact, http://schema.org/CreativeWork should be enough as the basis.

    You can change that implementation if you prefer. You can edit this file

    /themes/x/framework/views/{CURRENT_STACK}/wp-comments.php

    Cheers!

    #1237440
    RVgeeks
    Participant

    OK. Thanks!

    #1237448
    Christopher
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1236120 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>