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
/* Description: */ | |
/* In Avada the ticket quantity selector is not responsive */ | |
/* This little snippet aims to fix that */ | |
/* Paste the below lines into your child theme's style.css file */ | |
/* Plugins: The Events Calendar, Event Tickets, Event Tickets Plus */ | |
/* Author: Andras Guseo */ | |
/* Last updated: 2017-05-09 */ | |
.tribe-events-style-full .woocommerce .quantity input { |
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 | |
/* Snippet for The Events Calendar by Modern Tribe | |
* Excludes the event description filed from the search | |
* Paste the below snippet into your active (child) theme's functions.php file | |
* | |
* Plugins: The Events Calendar | |
* Author: Barry Hughes | |
* Last updated: 2017-05-11 | |
*/ |
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 | |
/* Adds City below event date in photo view | |
* Paste it in your child theme's functions.php file | |
*/ | |
function add_venue_to_photo_view() { | |
/* If we have city, then show city */ | |
if ( tribe_get_city() ) { | |
$venue = tribe_get_city(); | |
} | |
echo $venue; |
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 | |
/** | |
* Month Single Event - template override | |
* This file contains one event in the month view | |
* | |
* This file should be at [your-theme]/tribe-events/month/single-event.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
<?php | |
/* | |
* Change the style of the modal popup to make it readable on low res screens | |
* Paste the below snippet into your theme's functions.php file | |
* | |
* Plugins: The Events Calendar, Event Tickets | |
* Author: Andras Guseo | |
* Last updated: June 21, 2017 | |
*/ |
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 | |
/* | |
* Creates a filter for the venue ZIP code for Filter Bar | |
* Paste the below snippet into your theme's functions.php file | |
* | |
* Plugins: The Events Calendar, The Events Calendar: Filter Bar | |
* Author: Andras Guseo | |
* Last updated: June 26, 2017 | |
* | |
* Guide for creating custom filters: |
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 | |
/* Tribe, adding user meta to the attendees csv export | |
* Plugins: The Events Calendar, Event Tickets | |
* Last updated: July 14, 2017 | |
*/ | |
function tribe_export_custom_set_up ( $event_id ) { | |
//Add Handler for Community Tickets to Prevent Notices in Exports | |
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 | |
/* The below function will change the url of "All Events" and | |
* links that point back to the starting page of The Events Calendar | |
* (by default http://domain.com/events | |
* | |
* Plugins: The Events Calendar | |
* Author: Barry Hughes | |
* Last Updated: July 17, 2017 | |
*/ | |
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 | |
/* | |
* Shows the event for the first day and remove it from the rest in a multi-day event. | |
* Limited to month view only | |
* | |
* Plugins: The Events Calendar | |
* Author: Barry Hughes, Andras Guseo | |
* Last modified: July 18, 2017 | |
*/ |
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 | |
/* Change the event url to the external url. | |
* | |
* Plugins: The Events Calendar | |
* Author: Barry Hughes | |
* Last updated: July 20, 2017 | |
add_filter( 'tribe_get_event_link', function( $default_url ) { | |
$website_url = tribe_get_event_website_url(); | |
return empty( $website_url ) ? $default_url : $website_url; |