Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter linjo13

    (@linjo13)

    I found, this happens because of the _action_show_schema function in the unyson feedback, in class-fw-extension-feedback-stars.php,

    public function _action_show_schema() {
    $rating = $this->get_post_rating();
    $html = ”;
    if ( intval( $rating[‘count’] ) > 0 ) {
    $html .= ‘<div itemscope itemtype=”https://schema.org/Product”>&#8217;;
    $html .= ‘<meta itemprop=”name” content=”‘ . get_the_title() . ‘”/>’;
    $html .= ‘<div itemprop=”aggregateRating” itemscope itemtype=”https://schema.org/AggregateRating”>&#8217;;
    $html .= ‘<meta itemprop=”ratingValue” content=”‘ . $rating[‘average’] . ‘” />’;
    $html .= ‘<meta itemprop=”bestRating” content=”‘ . $this->get_max_rating() . ‘” />’;
    $html .= ‘<meta itemprop=”reviewCount” content=”‘ . $rating[‘count’] . ‘” />’;
    $html .= ‘</div>’;
    $html .= ‘</div>’;
    }

    echo $html;
    }
    IS there anyway to unhook this function

    Plugin Author Unyson

    (@unyson)

    Hello,

    Thank you for reporting.

    This is the fix and it will be included in the next Feedback extension release (soon).

    Thread Starter linjo13

    (@linjo13)

    Thanks for the reply.
    I know the fix, and I found this issue. But I am developing a new theme, how can I resolve this issue in the theme end? I copied the feedback section into framework-customizations folder, but it doesnt looks working .

    how can I fix this issue in the theme end by any means of overriding?

    Plugin Author Unyson

    (@unyson)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Schema breaking’ is closed to new replies.