This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dequeue_tribe_styles() { | |
// Dequeue events calendar stylesheets | |
wp_dequeue_style( 'tribe-events-full-calendar-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-full-mobile-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-mobile-style' ); | |
wp_dequeue_style( 'tribe-events-full-pro-calendar-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-pro-style' ); | |
wp_dequeue_style( 'tribe-events-calendar-full-pro-mobile-style' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'tribe_events_the_notices', 'customize_notice', 10, 2 ); | |
function customize_notice( $html, $notices ) { | |
//If text is found in notice, then replace it | |
if( stristr( $html, 'This event has passed.' ) ) { | |
//Customize the message as needed | |
$html = str_replace( 'This event has passed.', 'This event has passed and <a href="">add a link</a>.', $html ); | |
} | |
return $html; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_head', 'community_add_css' ); | |
function community_add_css() { | |
if (tribe_is_community_edit_event_page() || tribe_is_community_my_events_page()) { | |
?> | |
<style> | |
.recurrence-row {display:none !important;} | |
</style> | |
<?php | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('tribe_events_community_list_before_template', 'customize_community_list_intro_text', 10); | |
function customize_community_list_intro_text() { | |
echo '<p>Your HTML code to insert before the list will go here.</p>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import delegate from 'delegate'; | |
const el = { | |
siteHeader: document.querySelector('.site-header'), | |
}; | |
/** | |
* @function toggleMenu | |
* @description Toggle the menu open and closed | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_footer', 'community_add_javascript' ); | |
function community_add_javascript() { | |
if (tribe_is_community_edit_event_page()) { | |
?> | |
<script type="text/javascript"> | |
//Hide venue dropdown | |
jQuery('#event_venue tr:first').hide(); | |
//Hide organizer dropdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'tribe_events_event_schedule_details_formatting', 'remove_end_time', 10, 2); | |
function remove_end_time( $formatting_details ) { | |
$formatting_details['show_end_time'] = 0; | |
return $formatting_details; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Retrieve venues that match query criteria | |
$args = array( | |
'nopaging' => true, | |
'post_type'=>'tribe_venue', | |
//Only query venues in specific locations | |
'meta_query' => array( | |
'relation' => 'AND', | |
//Specific City | |
array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_footer', 'community_add_javascript' ); | |
function community_add_javascript() { | |
if (tribe_is_community_edit_event_page()) { | |
?> | |
<script type="text/javascript"> | |
//Hide organizer dropdown | |
jQuery('#event_organizer tr:eq(1)').hide(); | |
</script> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('tribe_events_community_required_fields', 'add_required_fields'); | |
function add_required_fields() { | |
return array( | |
'post_content', | |
'post_title', | |
'EventStartDate' | |
); | |
} |
NewerOlder