How to remove Rich Snippets from sidebar calendar?

Home Forums Calendar Products Events Calendar PRO How to remove Rich Snippets from sidebar calendar?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1001710
    explorer
    Participant

    Hi,

    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?

    Duplicate Google Rich Snippets

    Event Listings in Google

    Only in this thread is some kind of solution, which doesn’t work with the current version of The Events Calendar

    Rich Snippets and Wrong Links In Google Search Results

    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!

    #1001711
    explorer
    Participant

    This reply is private.

    #1001716
    explorer
    Participant

    This reply is private.

    #1002156
    Brian
    Member

    Hi,

    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

    #1002173
    explorer
    Participant

    This reply is private.

    #1002259
    Brian
    Member

    Hi,

    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…

    #1002426
    explorer
    Participant

    Moved it to a different folder structure without src/view and it works

    Thanks a lot for your help Brian

    #1002432
    explorer
    Participant

    This reply is private.

    #1002892
    Brian
    Member

    Hi,

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘How to remove Rich Snippets from sidebar calendar?’ is closed to new replies.