-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rich Snippet with Yotpo Review system #40
Comments
As far as I can see both extensions should be compatible. Have you noticed any conflicts? |
I had some problems with creare & yotpo, and ran across this to-do as I was trying to figure out what to do. Looks like the Creare SEO doesn't see the yotpo reviews at all... So, you need to pull in the rich snippet from yotpo and insert them. Find this file Delete line 30 to the end of the file.
and replace them with the following:
This way only inserts the aggregate rating section if there's reviews in yotpo. Otherwise, it drops it. Yotpo won't export all the individual reviews to go into the ld+json, so we need to drop the |
Yep, I can second that. Optimally, you would check if the Yotpo extension is installed and active and if so, use the code provided by @sam327. |
This is worth noting - you can only use rich snippets if you're on Yotpo's Pro plan or higher - it won't work on the starter plan. The check to see if a module is installed and active is something like this: However, if you're going in to edit this file to add the yotpo code, you really should know whether or not yotpo is installed. But my code seems to fail gracefully. I broke yotpo during development and nothing was majorly broken, I just got blank spaces. YMMV, of course. |
Hello,
I use your plugin and works great. I want to know how can I use Rich Snippet with Yotpo.
https://goo.gl/hBP7P3
Is that possible?
Regards,
The text was updated successfully, but these errors were encountered: