Removing iCal and Google Calendar links

Home Forums Calendar Products Events Calendar PRO Removing iCal and Google Calendar links

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1232681
    Ryan
    Participant

    I saw this thread asking the same question that I have: https://theeventscalendar.com/support/forums/topic/remove-ical-and-google-calendar-links/. However I cannot see the fix due to the private replies. :/

    What can I do to remove the iCal / GCal links now that that workaround is no longer functioning?

    #1233260
    Cliff
    Member

    Hi, Adam. The private replies in that thread didn’t include any helpful information.

    We do have this KB article: https://theeventscalendar.com/knowledgebase/removing-export-links-event-views/

    However, I tested its plugin with the latest version of The Events Calendar and it didn’t work.

    I couldn’t figure it out just yet so I’ve asked one of our developers for assistance. We’ll get you an answer within the next couple of days. Thanks for your understanding and patience.

    #1234845
    Cliff
    Member

    Hi, Adam.

    We now have a snippet for you:

    https://gist.github.com/elimn/d1a9d6edbff993978f57b7f8e9a7b56b

    Please let me know if it works for you.

    #1234920
    Mathew
    Participant

    Thank you @Cliff

    The custom function works perfect.

    Building off the same snippet, here’s a version that will remove the Export button from the Month view.


    function tribe_remove_calendar_export_links() {
    if ( function_exists( 'tribe' ) ) {
    remove_action( 'tribe_events_after_footer', array( tribe( 'tec.iCal' ), 'maybe_add_link' ) );
    }
    }
    add_action( 'init', 'tribe_remove_calendar_export_links' );

    #1234934
    Cliff
    Member

    Awesome, thanks so much for sharing with us and others!

    Have a great rest of your week.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Removing iCal and Google Calendar links’ is closed to new replies.