Support » Plugin: The Events Calendar » Removing “Export Events” on Month View

  • khorayn

    (@khorayn)


    Hi,

    I need to remove the button “Export Events” that appears under the calendar in Month View.
    I’m already using this code in function.php:

    `remove_action( ‘tribe_events_single_event_after_the_content’, array(
    tribe( ‘tec.iCal’ ), ‘single_event_links’ )
    );

    to remove the “Google Calendar” and “Ical Export” buttons on single events and it works great, but doesn’t remove the other one. Is there a similar code that I can add? Or anything else?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • joeleen

    (@joeleen)

    I have a similar issue but I ONLY want to remove the “export events” links found under the month & list views. I want to keep the “google calendar” and “ical export” buttons… Looking for code that removes ‘”export events” only.

    joeleen

    (@joeleen)

    I found a plugin that removes ALL export links: “The Events Calendar: Remove Export Links”, you must use ver 1.1 – search the forums, I found a link there in the last day or two.

    THEN, if you want to add back the google & ical links like I do, add this code to your child functions.php file:

    // adds google link back
    add_action(‘tribe_events_single_event_after_the_content’, ‘tribe_add_gcal_link’);

    function tribe_add_gcal_link() {

    // don’t show on password protected posts
    if (is_single() && !post_password_required()) {
    echo ‘
    <table><tr><td><div class=”tribe-events-cal-links”>’;
    echo ‘+ ‘ . __( ‘Google Calendar’, ‘tribe-events-calendar-pro’ ) . ‘‘;
    echo ‘</div></td>
    <!– .tribe-events-cal-links –>’;
    }

    }

    //ads ical link back
    add_action(‘tribe_events_single_event_after_the_content’, ‘tribe_add_ical_link’);

    function tribe_add_ical_link() {

    // don’t show on password protected posts
    if (is_single() && !post_password_required()) {
    echo ‘
    <td><div class=”tribe-events-cal-links”>’;
    echo ‘+ ‘ . __( ‘iCal Import’, ‘tribe-events-calendar’ ) . ‘‘;
    echo ‘</div></td></tr></table>
    <!– .tribe-events-cal-links –>’;
    }

    }

    khorayn

    (@khorayn)

    Hi,

    I already tried that plugin (I can only find the 1.0 version, though), but it doesn’t work on my website. That’s why I was trying to find some bit of code that would do it!
    As I said, I managed to hide the iCal and Google Calendar, and now the only one left is the Export at the bottom of the calendar: that’s the one I’m trying to get rid of (it’s enough to hide it, I don’t necessarily need it removed).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing “Export Events” on Month View’ is closed to new replies.