Skip to content

Instantly share code, notes, and snippets.

@bordoni
Created January 29, 2015 13:02
Show Gist options
  • Save bordoni/20c50131390384b308b3 to your computer and use it in GitHub Desktop.
Save bordoni/20c50131390384b308b3 to your computer and use it in GitHub Desktop.
Moving The Google Calendar and iCalendar links to organizer box
<?php
/*
* If you already have something in your functions.php, please remove these first few lines
*/
// First solution - links below the organizer section
add_action( 'tribe_events_single_meta_organizer_section_end', array( 'TribeiCal', 'single_event_links' ) );
remove_action( 'tribe_events_single_event_after_the_content', array( 'TribeiCal', 'single_event_links' ) );
// Second solution - links on the right of the organizer box (after)
add_action( 'tribe_events_single_event_meta_primary_section_end', array( 'TribeiCal', 'single_event_links' ) );
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