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 / change-wording-with-context.php
Created May 12, 2017 20:21
Change the wording of any bit of text or string, which has a context
<?php
function tribe_custom_theme_text_with_context ( $translation, $text, $context, $domain ) {
// Put your custom text here in a key => value pair
// Example: 'Text you want to change' => 'This is what it will be changed to'
// The text you want to change is the key, and it is case-sensitive
// The text you want to change it to is the value
// You can freely add or remove key => values, but make sure to separate them with a comma
// This example changes the label "Venue" to "Location", and "Related Events" to "Similar Events"
@andrasguseo
andrasguseo / remove-export-links.php
Created May 17, 2017 21:12
Remove export links from The Events Calendar
@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
*/