- This topic has 18 replies, 3 voices, and was last updated 6 years, 9 months ago by
Tom.
-
AuthorPosts
-
November 17, 2018 at 11:43 am #729885
Nacho
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.
November 17, 2018 at 5:59 pm #729983Tom
Lead DeveloperLead DeveloperHi there,
Any examples of what it should look like?
Let me know 🙂
November 18, 2018 at 2:45 am #730110Nacho
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.
November 18, 2018 at 10:36 am #730399Tom
Lead DeveloperLead DeveloperIt 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; }
November 19, 2018 at 8:33 am #731149Nacho
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.
November 19, 2018 at 8:35 am #731151Nacho
Also,
I´ve just tried clicking on the 5 stars and it does not work either.
Thanks a lot Tom.
November 19, 2018 at 2:07 pm #731391Tom
Lead DeveloperLead DeveloperHere’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' ); } );
November 20, 2018 at 7:39 am #732247Nacho
Hello Tom,
Where should I put that in the theme? I´m not code savvy.
Thanks a lot for your help Tom
Bests,
-Nacho.November 20, 2018 at 9:04 am #732383Tom
Lead DeveloperLead DeveloperYou can add it using one of these methods: https://docs.generatepress.com/article/adding-php/
November 21, 2018 at 4:57 am #733204Nacho
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.
November 21, 2018 at 9:28 am #733584Tom
Lead DeveloperLead DeveloperI’m still seeing the jQuery is not defined error.
Make sure to clear any caching plugins.
November 21, 2018 at 1:47 pm #733823Nacho
Hello Tom,
I´ve just cleared caché, tried several times and nothing.
Is there anything I can do?
Thanks a lot.
November 21, 2018 at 2:43 pm #733866Tom
Lead DeveloperLead DeveloperCan you make sure the Code Snippet is activated?
If it is, can you deactivate the caching plugin so I can debug further?
November 22, 2018 at 7:42 am #734664Nacho
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.
November 22, 2018 at 9:33 am #734768David
StaffCustomer SupportHi 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.
-
AuthorPosts
- You must be logged in to reply to this topic.