Archived topic
All in One Schema Rich Snippets issue
18 replies · Started by Nacho on November 17, 2018
Hello,
I´m using the all in one Schema Rich Snippets for the URL below and it looks weird with Generatepress. It works fine with the basic Wordpress themes like Twenty fifteen or so but I don´t see why it does not work properly with GP.
Can you help please?
Thanks a lot.
Hi there,
Any examples of what it should look like?
Let me know :)
Hello,
Sure it has to look like something in this website: https://barbacoas.online/tepro/tepro-toronto/
Also try pressing the 5 stars, it should give you an alert like this "Ratings updated successfully !" at the top but it does not.
Thanks a lot.
It seems the plugin assumes that everything is set to box-sizing: border-box, which is likely a bug on their end.
This should fix it:
#snippet-box * {
box-sizing: border-box;
}
Hello Tom,
It´s weird since I did put that in the CSS part in the customizer, yet it does not work. It works though when I´m logged in into Wordpress.
Do you know how to fix this?
Thanks a lot for your help.
Also,
I´ve just tried clicking on the 5 stars and it does not work either.
Thanks a lot Tom.
Here's what I'm seeing now: http://prntscr.com/lkfmnb
The stars don't seem to be working because jQuery isn't defined. GeneratePress doesn't add jQuery by default, and the plugin is making an assumption that jQuery exists.
You should report this to them, as they can add it as a dependency to their script.
For now, you can add this function:
add_action( 'wp_enqueue_scripts', function() {
wp_enqueue_script( 'jquery' );
} );
Hello Tom,
Where should I put that in the theme? I´m not code savvy.
Thanks a lot for your help Tom
Bests,
-Nacho.
You can add it using one of these methods: https://docs.generatepress.com/article/adding-php/
Hello Tom,
I´ve just done it using the code snippets plugin but it´s not working either.
What can I do?
Thanks a lot.
I'm still seeing the jQuery is not defined error.
Make sure to clear any caching plugins.
Hello Tom,
I´ve just cleared caché, tried several times and nothing.
Is there anything I can do?
Thanks a lot.
Can you make sure the Code Snippet is activated?
If it is, can you deactivate the caching plugin so I can debug further?
Hello Tom,
Just checked the plugin and it´s active. Also, I´ve just deactivated the cache plugin.
Let me know if there is anything I can do to help.
Thanks a lot Tom.
Hi there,
have you tried clearing your browser cache? I can see that jQuery is running and there looks to be the additional markup being added.