This file contains hidden or 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 | |
/** | |
* Widget: Events List Event Title | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe/events/v2/widgets/widget-events-list/event/title.php | |
* | |
* See more documentation about our views templating system. | |
* | |
* @link http://evnt.is/1aiy |
This file contains hidden or 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 | |
/** | |
* Single Event Title Template Part | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe/events/single-event/title.php | |
* | |
* See more documentation about our Blocks Editor templating system. | |
* | |
* @link http://evnt.is/1aiy |
This file contains hidden or 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( 'pre_get_document_title', function( $title ){ | |
if ( is_tax( 'tribe_events_cat' ) ) { | |
$queried_object = get_queried_object(); | |
// Set title to: [Tribe Events Category Name] - [WordPress Site Title] | |
$title = $queried_object->name . ' - ' . get_bloginfo( 'name' ); | |
} | |
This file contains hidden or 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( 'tribe_get_venue_link', function( $link, $venue_id ) { | |
$just_the_title = get_the_title( $venue_id ); | |
return $just_the_title; | |
}, 10, 2 ); |
This file contains hidden or 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 | |
<?php | |
/** | |
* View: Month View - Multiday Event | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe/events/v2/month/calendar-body/day/multiday-events/multiday-event.php | |
* | |
* See more documentation about our views templating system. | |
* |
This file contains hidden or 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( 'tribe_events_views_v2_month_multiday_classes', function( $classes ) { | |
// Get rid of "width" class | |
$needle = "tribe-events-calendar-month__multiday-event--width-"; | |
foreach ( $classes as $i => $haystack ) { | |
if ( 0 === strpos( $haystack, $needle ) ) { | |
unset( $classes[$i] ); | |
} | |
} |
This file contains hidden or 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( 'tribe_get_venue', function( $venue, $venue_id ) { | |
$venue = get_the_title( $venue_id ); | |
return $venue; | |
}, 11, 2 ); |
This file contains hidden or 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 | |
/** | |
* View: Dropdown Component | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe/events-filterbar/v2_1/components/dropdown.php | |
* | |
* See more documentation about our views templating system. | |
* | |
* @link http://evnt.is/1aiy |
This file contains hidden or 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 | |
// Use at your own risk! | |
// No warranty, no support provided | |
add_action( 'wp_footer', function() { ?> | |
<script> | |
(function () { | |
// Change your redirection URL here | |
const REDIRECTION_URL = 'https://www.example.com/events/'; |
This file contains hidden or 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 | |
// Adjust args | |
add_filter( 'register_post_type_args', function( $args, $post_type ) { | |
if ( 'tribe_venue' === $post_type ) { | |
$args['has_archive'] = true; | |
} | |
return $args; | |
}, 10, 2 ); |