Home › Forums › Calendar Products › Events Calendar PRO › Google interpreting Schema markup for all day events as 00:00. How to remove?
- This topic has 11 replies, 2 voices, and was last updated 8 years, 1 month ago by
Tommy Chamings.
-
AuthorPosts
-
February 26, 2018 at 2:59 am #1463516
Tommy Chamings
ParticipantHow can I remove the startDate, endDate times for all day events?
As per the screen shots attached, currently Google is picking up the session (event) times as 00:00 and I want to remove this to just keep the date.
February 27, 2018 at 6:52 am #1464781Jaime Marchwinski
KeymasterHi Tommy,
Thanks so much for reaching out!
Are you looking to remove the start and end time from our plugin or from Google?
By default, you do have to enter a Start and End time, but you can hide them from the front end of your site, if that is something that you are interested in.
Also, if you can take a screenshot of how your events appear on the back end/front end, I can try to provide you with some more specific advice.
Let me know!
Thanks,
Jaime
February 27, 2018 at 7:11 am #1464802Tommy Chamings
ParticipantHi Jaime,
My calender is configured so that each entry is always an All Day Event. This means that I don’t need start and end times at all. You can check out me calendar here https://www.bigrockclimbing.com/hub-book/
I’ve also attached some screenshots. You can see that I have already removed all the times from the front end of the site. Unfortunately, Google is picking up the 00:00 time from the plugin as per the Structured Data screenshot I sent with my original query.
So, I need to remove the start and end times from Google, by removing them from the plugin. I’m hoping that you have a fix for completely removing the start and end times from the schema markup that the plugin generates.
Best regards
TommyFebruary 28, 2018 at 9:47 am #1466209Jaime Marchwinski
KeymasterHi Tommy,
Just to give you a bit more background information, we use JSON for Linking Data in relation to events. You can see how our demo site turns up in Google Structured Data Testing Tool results. https://search.google.com/structured-data/testing-tool/u/0/#url=http%3A%2F%2Fwpshindig.com%2Fevents%2F
I would recommend incorporating https://wordpress.org/plugins/all-in-one-schemaorg-rich-snippets/ into your site for further schema markup as needed.
Let me know if that helps!
Thanks,
Jaime
March 1, 2018 at 12:19 am #1466823Tommy Chamings
ParticipantHi Jaime,
I’m afraid that your response isn’t that helpful (sorry!). The fact is that the schema for event calendar ‘all day events’ is outputting start/end times as 00:00 which is really unhelpful when this shows up on Google.
I need to know how I can specifically edit the schema for a single events page in order to remove the start/end times from the schema.
Thanks
TommyMarch 1, 2018 at 5:14 am #1466931Jaime Marchwinski
KeymasterHi Tommy,
Sorry that my suggestions weren’t what you were looking for.
You can try to edit the following snippet, which is designed to remove end times for events:
https://theeventscalendar.com/knowledgebase/remove-end-time-for-events/
Let me know if that helps!
Thanks,
Jaime
March 1, 2018 at 5:39 am #1466942Tommy Chamings
ParticipantHi Jamie,
I need to remove the start time too to fix the issue.
Can you tell me the file location within the plugin that contains the schema information?Thanks
TommyMarch 1, 2018 at 7:10 am #1467064Jaime Marchwinski
KeymasterHi Tommy,
I believe this is the function that you are looking for:
https://theeventscalendar.com/function/tribe_get_start_time/
Let me know if that helps!
Thanks,
Jaime
March 2, 2018 at 2:27 am #1467997Tommy Chamings
ParticipantHi Jamie,
I’ve used this code to disable Schema markup and after testing with Google Structured Data Tool, the event markup has been removed. I’m assuming that this will solve my issue once Google has recrawled the site.
/*
* Disable JSON LD markup used by search engines
*/
add_filter( 'tribe_json_ld_markup', '__return_empty_string' );March 2, 2018 at 4:55 am #1468073Jaime Marchwinski
KeymasterHi Tommy,
Great, thanks for sharing! Let me know if you have any other questions on this topic!
Thanks,
Jaime
March 24, 2018 at 9:35 am #1487731Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Google interpreting Schema markup for all day events as 00:00. How to remove?’ is closed to new replies.
