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
.tribe-events-meta-group dd.location span.country-name { | |
position: absolute; | |
top: -10000px; | |
visibility: hidden; | |
} |
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( 'pre_get_posts', 'order_by_modified' ); | |
function order_by_modified( $query ) { | |
if ( $query->is_home() && $query->is_main_query() ) { | |
$query->set( 'orderby', 'modified' ); | |
} | |
} |
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_inside_before_loop', 'output_custom_code' ); | |
function output_custom_code() { | |
// Check if displaying month view | |
if( tribe_is_month() ) { | |
echo 'Your custom code to display.'; | |
} | |
} |
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
<form method="post" action="https://secure-q.net/Pages/Post" enctype="application/x-www-form-urlencoded" > | |
<input type="hidden" id="merchantid" name="merchantid" value="ICFGCQ" /> | |
<input type="hidden" id="pageid" name="pageid" value="4504" /> | |
<input type="hidden" id="Organization" name="Organization" value="" /> | |
<input type="hidden" id="Prefix" name="Prefix" value="" /> | |
<input type="hidden" id="FirstName" name="FirstName" value="" /> | |
<input type="hidden" id="LastName" name="LastName" value="" /> | |
<input type="hidden" id="Suffix" name="Suffix" value="" /> | |
<input type="hidden" id="Address1" name="Address1" value="" /> | |
<input type="hidden" id="City" name="City" value="" /> |
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
<form method="post" action="https://secure-q.net/Pages/Post" enctype="application/x-www-form-urlencoded" > | |
<input type="hidden" id="merchantid" name="merchantid" value="ICFGCQ" /> | |
<input type="hidden" id="pageid" name="pageid" value="4150" /> | |
<input type="hidden" id="Organization" name="Organization" value="" /> | |
<input type="hidden" id="Prefix" name="Prefix" value="" /> | |
<input type="hidden" id="FirstName" name="FirstName" value="" /> | |
<input type="hidden" id="LastName" name="LastName" value="" /> | |
<input type="hidden" id="Suffix" name="Suffix" value="" /> | |
<input type="hidden" id="Address1" name="Address1" value="" /> | |
<input type="hidden" id="City" name="City" value="" /> |
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('gettext', 'theme_filter_text', 10, 3); | |
function theme_filter_text( $translations, $text, $domain ) { | |
// Copy and modify the following if {} statement to replace multiple blocks of text | |
// Match the text you want you want to translate, preferably also match the text domain | |
if($text === 'Organizer' && $domain === 'tribe-events-calendar') { | |
// The custom text you want instead | |
$text = 'Instructor'; |
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_get_events_title', 'change_month_view_events_title'); | |
function change_upcoming_events_title($title) { | |
//We'll change the title on upcoming and map views | |
if (tribe_is_month()) return ''; | |
//In all other circumstances, leave the original title in place | |
return $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
add_filter('gettext', 'theme_filter_text', 10, 3); | |
function theme_filter_text( $translations, $text, $domain ) { | |
// If this text domain starts with "tribe-" | |
if(strpos($domain, 'tribe-') === 0) { | |
// The text to replace | |
$text = str_replace( | |
// Text to search for | |
array('Other'), |
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 | |
/** | |
* Default Events Template | |
* This file is the basic wrapper template for all the views if ‘Default Events Template’ | |
* is selected in Events -> Settings -> Template -> Events Template. | |
* | |
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php | |
* | |
* @package TribeEventsCalendar | |
* |
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
// Runs the <title> element through our custom filter | |
add_filter('tribe_events_title_tag', 'filter_events_title'); | |
// If you are using certain versions of Yoast you might try deleting the above line and uncommenting the following one | |
// add_filter('wpseo_title', 'filter_events_title'); | |
// Tribe events: Manually set title for each page | |
function filter_events_title ($title) { | |
if ( tribe_is_upcoming() && !is_tax() ) { // List View Page: Upcoming Events |
OlderNewer