Tagged: x
-
AuthorPosts
-
August 16, 2016 at 6:50 am #1133380
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. 🙂
August 16, 2016 at 11:01 am #1133724That 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
August 16, 2016 at 9:43 pm #1134600Hi 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!
August 17, 2016 at 12:02 am #1134699Hey 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.
August 17, 2016 at 10:55 am #1135357Alright, 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 🙂
August 17, 2016 at 12:02 pm #1135439Hi Zack,
I am glad you managed to fix it.
Have a great day,
Joao
October 7, 2016 at 9:19 am #1206785I 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
October 7, 2016 at 11:59 am #1207004Hi There,
Thanks for letting us know,
I will forward to our developers.
Joao
-
AuthorPosts