Home › Forums › Event Espresso Premium › ld+json schema data output twice
Posted: August 10, 2020 at 2:30 pm
EE4 Everything License
August 10, 2020 at 2:30 pm
On my events the ld+json schema data is output in the header and footer? It makes googles rich results tester show two events when there is one. Is this just on my site or is this an issue with the plugin?
Thanks for the help.
August 10, 2020 at 4:45 pm
The schema data is output on wp_print_scripts() and it looks like Gravity forms is calling it right before the get a quote form at the bottom of the page.
If you temporarily remove that widget on EE single events does it stop that data being output twice?
August 10, 2020 at 5:14 pm
That seems to take care of it. I wonder why the Gravity Forms widget calls wp_print_scripts() again? I think that was causing other issues for me as well.
Thank you so much for figuring that out.
I will do some research on Gravity Forms and reach out to their team.
August 12, 2020 at 12:25 pm
Likely to make sure their scripts are added to the page, although still seems a little strange and I haven’t bug deep into it to know for sure.
Anyway, I’m glad the above worked for you 🙂
You must be logged in to reply to this support post. Sign In or Register for an Account
Updated by Tony 1 month, 2 weeks ago ago
Tagged: ld+json, Schema.org