Calendar Events without location causes Google Structured Data Error.

Google states 'Field Location is Required'.
There seems to be a difference between 'Event' and an Intangible Thing like a webinar for or a holiday example.

I'm not sure yet what the solution is.
Does anyone have idea's? @Mouth @Freelancer ?
 
Does anyone have idea's?
Three thoughts to address this;
  1. Admin to encourage users (or mods/admin edit/update) for all Events to have a value in Location (even if it's generic like city|state|country), and not worry re Google error for/if a few that don't.
  2. @NixFifty to make the Location field mandatory, so that every event has one.
  3. @NixFifty to not output the ld+json for any event that doesn't have a location value.
I think #3 is likely the best outcome.
 
We can roll with #2 and #3. I can add an option on categories to make the location field required (like cover images) and then not output metadata for events with no location.
 
Please release this fix as soon as possible. We need to get rid of the google issues.
Scroll to the end of nf_calendar_event_view and add this above <script type="application/ld+json">:
Code:
<xen:if is="{$event.event_location}">

Add this after the closing </script> tag:
Code:
</xen:if>
 
Back
Top