Skip to content

Instantly share code, notes, and snippets.

@andrasguseo
andrasguseo / fixing-avada-ticket-qty-input.css
Last active May 9, 2017 16:11
Fixing the ticket quantity input field in Avada.
/* 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 {
@andrasguseo
andrasguseo / exclude-description-from-search.php
Created May 11, 2017 20:25
Excludes the event description filed from the search
<?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
*/
@andrasguseo
andrasguseo / add_venue_to_photo_view.php
Last active May 19, 2017 22:37
The Events Calendar Pro - Adds City below event date in photo view for Sarah
<?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;
@andrasguseo
andrasguseo / single-event.php
Created May 31, 2017 19:58
Adding full address details to the event tooltip in month view.
<?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
*
*/
@andrasguseo
andrasguseo / low-res-style-mod.php
Created June 21, 2017 20:09
Changing styles of popup modal for low res screens
<?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
*/
@andrasguseo
andrasguseo / zip-for-filter-bar.php
Last active June 26, 2017 20:09
ZIP filtering for The Events Calendar: Filter Bar
<?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:
@andrasguseo
andrasguseo / add-user-meta-to-csv.php
Created July 14, 2017 13:35
Adding user meta to the attendees csv export
<?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
<?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
*/
@andrasguseo
andrasguseo / multiday-mod.php
Created July 18, 2017 16:11
Shows the event for the first day and remove it from the rest in a multi-day event.
<?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
*/
@andrasguseo
andrasguseo / change-event-url.php
Created July 20, 2017 15:33
Change the event url to the external url
<?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;