Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1133380

    Christian
    Moderator

    I see. X removes the aggregated review rating in the product summary so let us try changing the code given previously with the one below to add back the rating.

    add_action('after_setup_theme','woocommerce_default');
    
    function woocommerce_default() {
    	add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 );
    }

    Hope that helps. 🙂

    #1133724

    Zach W
    Participant

    That does help, thanks.
    Now the only thing left to fix is the schema markup for the individual reviews.

    Its currently invalid saying “The property reviewRating is not recognized by Google for an object of type Product.” as each review needs to be surrounded by the review type eg itemprop="review" itemscope itemtype="http://schema.org/Review"

    Something like that should basically bring the X theme up to par with the default themes. Please test with Google’s structured data testing tool to make sure there are no errors.

    I look forward to a theme update

    #1134600

    Rad
    Moderator

    Hi Zach,

    I’ll note that. But in my personal opinion, I don’t think it’s needed to integrate product schema on X theme since it’s more on Woocommerce related. That development should focus on Woocommerce and not on the theme especially that there are plenty of extension and add-ons available for woocommerce. X theme is not dependent to Woocommerce, but we only added the styling to make it blend with X theme’s design. But I like the idea of having optional schema on theme 🙂

    Have you tried this plugin https://www.schemaapp.com/product/schema-woocommerce-plugin/. Woocommerce is a big plugin and I don’t I can cover it from scratch to fully develop a working schema. I’ll just forward this as feature request 🙂

    Thanks!

    #1134699

    Christian
    Moderator

    Hey Zach,

    Would you mind adding itemprop="review" itemscope itemtype="http://schema.org/Review" in

    <li id="li-comment-<?php comment_ID(); ?>" <?php comment_class(); ?>>

    located in x\framework\functions\YOUR_STACK.php

    So it would be like

    <li id="li-comment-<?php comment_ID(); ?>" itemprop="review" itemscope itemtype="http://schema.org/Review" <?php comment_class(); ?>>

    Let us know if that fixed the issue for you and I’ll add it in our list.

    Thanks.

    #1135357

    Zach W
    Participant

    Alright, thanks guys.

    Ive added that and a few other small but needed modifications to get it up to spec. No errors now!

    Here is a screenshot of my changes. http://imgur.com/a/70Dzw
    I assume it will be similar for the other stacks. I’m sure others will appreciate these fixes when they are released.

    Feel free to credit me in the changelog 🙂

    #1135439

    Joao
    Moderator

    Hi Zack,

    I am glad you managed to fix it.

    Have a great day,

    Joao

    #1206785

    Zach W
    Participant

    I found a small typo in two of the theme files and thought I should share.

    your time tag is missing a quote and throws off some browsers.

    Here’s a screenshot of the fixes that need to be made http://imgur.com/a/wTlkY

    #1207004

    Joao
    Moderator

    Hi There,

    Thanks for letting us know,

    I will forward to our developers.

    Joao