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 | |
/** | |
* Dequeue tribe-events.min.js file. | |
* Date: 11/20/17 | |
*/ | |
add_action( 'wp_print_scripts', 'dequeue_tribe_events', 100 ); | |
function dequeue_tribe_events() { | |
wp_dequeue_script( 'tribe-events-calendar-script' ); | |
wp_deregister_script( 'tribe-events-calendar-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
<?php | |
/** | |
* Modified Single Event Template | |
* A single event. This displays the event title, start and end dates for recurring events, description, meta, and | |
* optionally, the Google map for the event. | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/single-event.php | |
* | |
* @package TribeEventsCalendar | |
* @version 4.6.3 |
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 | |
/** | |
* This template wraps the content of the month view tooltip with an event link (the entire tooptip links to your event, not just the excerpt links). | |
* | |
* Add this template on: | |
* | |
* [your-theme]/tribe-events/month/tooltip.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
<?php | |
/** | |
* This function adds specific CSS if the page is a Single Event. | |
*/ | |
if( tribe_is_event() && is_single() ) { | |
?> | |
<style type="text/css">.header_hor .l-subheader-h, .l-titlebar-h, .l-main-h, .l-section-h, .l-subfooter-h, .w-tabs-section-content-h, .w-blog-post-body { | |
max-width: 1140px !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
<?php | |
/** | |
* This function hides a specific div if the page is a Single Event. | |
*/ | |
if( tribe_is_event() && is_single() ) { | |
?> | |
<style type="text/css">.title_subtitle_holder { | |
display: none !important; | |
}</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
/** | |
* @file This file contains all map view specific javascript. | |
* This file should load after all vendors and core events javascript. | |
* @version 3.0 | |
*/ | |
(function( window, document, $, td, te, tf, tg, ts, tt, config, dbug ) { | |
/* | |
* $ = jQuery |
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 | |
/** | |
* This function lists the Events Alphabetically | |
*/ | |
add_filter( 'pre_get_posts', 'tribe_change_event_order', 99 ); | |
function tribe_change_event_order( $query ) { | |
if ( tribe_is_past() || tribe_is_upcoming() || tribe_is_photo() ) { | |
$query->set( 'orderby', 'title' ); |
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 | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); | |
function custom_excerpt_length( $length ) { | |
return 300; | |
} |