Home › Forums › Calendar Products › Events Calendar PRO › How to remove Rich Snippets from sidebar calendar?
- This topic has 8 replies, 2 voices, and was last updated 10 years, 8 months ago by
Brian.
-
AuthorPosts
-
September 3, 2015 at 11:21 am #1001710
explorer
ParticipantHi,
We are having the same issue as all the following threads. Unfortunately none of them provide a solution.
After Indexing by Google displayed links of Widget are wrong?
Only in this thread is some kind of solution, which doesn’t work with the current version of The Events Calendar
If you use the sidebar widget on a post, Google index it and shows it as rich snippest in the search result. How do you prevent this.? We are not event website and don’t want our not so important calendar to show up on every search result.
Another problem with rich snippets is with the Google search result of an actual event. So if you search for an event, the Google search result shows below twice the same event with different dates!
September 3, 2015 at 11:23 am #1001711explorer
ParticipantThis reply is private.
September 3, 2015 at 11:32 am #1001716explorer
ParticipantThis reply is private.
September 4, 2015 at 9:22 am #1002156Brian
MemberHi,
Thanks for using our plugins. I can help out here.
I was not able to replicate the results in Google Search, but sense we do not live in the same area that makes sense.
Either way to remove this, Nico’s solution is still valid it was just for the Core version and not Pro.
In Pro is is the event class vevent in the List Widget causing this.
You want to follow our themer’s guide:
https://theeventscalendar.com/knowledgebase/themers-guide/
To move over these two files into your theme to edit:
events-calendar-pro\src\views\pro\widgets\list-widget.php
events-calendar-pro\src\views\pro\widgets\mini-calendar\list.php
In those files you want to replace this:
<div class="<?php tribe_events_event_classes() ?>">With This:
<div class="<?php echo str_replace("vevent", "", tribe_events_event_classes( get_the_id(), false ) ); ?>">In the list.php file you might want to remove vcalendar from this class if you are using the Mini Calendar Widget:
<div class="tribe-events-loop hfeed vcalendar">
Let me know how that works out.Thanks
September 4, 2015 at 10:09 am #1002173explorer
ParticipantThis reply is private.
September 4, 2015 at 1:06 pm #1002259Brian
MemberHi,
I looked at that link and the vevents is still there.
Do you have a child theme or a parent theme you are working with? If so try the other.
And to verify you have the templates in the right place you could add a word and if you see it you know it is working.
The directory in your theme should not include views or src in it. Those are replaced by tribe-events/pro/widgets etc…
September 5, 2015 at 9:19 am #1002426explorer
ParticipantMoved it to a different folder structure without src/view and it works
Thanks a lot for your help Brian
September 5, 2015 at 9:27 am #1002432explorer
ParticipantThis reply is private.
September 8, 2015 at 7:47 am #1002892Brian
MemberHi,
Glad that helps with the rich snippets.
For the other item could you please create a new support ticket for that and we can help you there on that. It is working by design to show today’s date and not the start date of the event there so it would be a customization to change that, but that is something we can help get started on.
Cheers
-
AuthorPosts
- The topic ‘How to remove Rich Snippets from sidebar calendar?’ is closed to new replies.
