Skip to content

Instantly share code, notes, and snippets.

@bordoni
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save bordoni/b48f70d6ba65a53a09c2 to your computer and use it in GitHub Desktop.

Select an option

Save bordoni/b48f70d6ba65a53a09c2 to your computer and use it in GitHub Desktop.
Change the Google Calendar texting and move it to another place
<?php
/*
* If you already have something in your functions.php, please remove these first few lines
*/
function tec_forum_938692() {
// don't show on password protected posts
if ( is_single() && post_password_required() ) {
return;
}
echo '<div class="tribe-events-cal-links">';
// Change the Contents of below
echo '<a class="tribe-events-gcal tribe-events-button" href="' . tribe_get_gcal_link() . '" title="' . __( 'Add to Google Calendar', 'tribe-events-calendar' ) . '">+ ' . __( 'Google Calendar', 'tribe-events-calendar' ) . '</a>';
echo '<a class="tribe-events-ical tribe-events-button" href="' . tribe_get_single_ical_link() . '" title="' . __( 'Download .ics file', 'tribe-events-calendar' ) . '" >+ ' . __( 'iCal Export', 'tribe-events-calendar' ) . '</a>';
echo '</div><!-- .tribe-events-cal-links -->';
}
add_action( 'tribe_events_single_meta_details_section_end', 'tec_forum_938692' );
remove_action( 'tribe_events_single_event_after_the_content', array( 'TribeiCal', 'single_event_links' ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment