• Resolved mybathgreg

    (@mybathgreg)


    Google is showing the date in their search engine results on our woocommerce product pages from the time tag on the reviews.

    Is there a way to disable this from happening… i.e. not using the time tag to display the review date?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Thank you for using CusRev.

    The schema markup (rich snippet) of reviews on the product page is created by WooCommerce itself, our plugin does not handle this code. I recommend contacting WooCommerce support to ask for removing the field datePublished in the rich snippet code.

    Refer to this solution https://help.cusrev.com/support/solutions/articles/43000471942-does-the-plugin-create-schema-markup-for-reviews-

    Thread Starter mybathgreg

    (@mybathgreg)

    There is no “datepublished” in my rich snippets. Google is taking the first review of every product, not displaying the rich snippets on search results, and is displaying a date because on the review section of the page the date on the comments is published with a time html tag….

    <div class="comment-text">
    <div class="star-rating" role="img" aria-label="Rated 5 out of 5"><span style="width:100%">Rated <strong class="rating">5</strong> out of 5</span></div>
    <p class="meta">
    <strong class="woocommerce-review__author">Jerry Stenson </strong>
    <span class="woocommerce-review__dash">–</span> <time class="woocommerce-review__published-date" datetime="2022-09-14T06:58:16-06:00">September 14, 2022</time>
    </p>
    <div class="description"><p>Best I’ve found so far. Support staff is great</p>
    </div>
    </div>

    see here

    https://www.phoriakratom.com/phoria-borneo-green-vein-kratom-powder/

    • This reply was modified 2 years, 2 months ago by mybathgreg.
    Thread Starter mybathgreg

    (@mybathgreg)

    I found line in review-compat.php and review-meta.php

    &ndash; <time itemprop="datePublished" datetime="<?php echo get_comment_date( 'c' ); ?>"><?php echo get_comment_date( __( get_option( 'date_format' ), 'woocommerce' ) ); ?></time>:

    removed the time tag and just have…

    <span class="woocommerce-review__dash">&ndash;</span> <?php echo esc_html( get_comment_date( wc_date_format() ) ); ?>

    Reviews display correctly…

    I’ll wait until google updates but I’m assuming that was our issue. Maybe a bug with google? I’m not sure but google was using what was in that time html tag as if it was datepublished schema markup.

    • This reply was modified 2 years, 2 months ago by mybathgreg.
    • This reply was modified 2 years, 2 months ago by mybathgreg.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Odd problem with time tag on reviews’ is closed to new replies.