Support

Home Forums Event Espresso Premium ld+json schema data output twice

ld+json schema data output twice

Posted: August 10, 2020 at 2:30 pm


jestmurd

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?

Check https://jestmurdermystery.com/events/08-29-2020-murder-mystery-dinner

Thanks for the help.


Tony

  • Support Staff

August 10, 2020 at 4:45 pm

Hi there,

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?


jestmurd

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.


Tony

  • Support Staff

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 🙂

The support post ‘ld+json schema data output twice’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso