Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@theeventscalendar
theeventscalendar / Event Website link
Last active December 11, 2015 22:26 — forked from geoffgraham/gist:2fe5ba8350c3a8f630d0
Make an Event Website a link instead of showing the text url
@theeventscalendar
theeventscalendar / Event Website button
Last active August 29, 2015 14:22 — forked from geoffgraham/gist:354ea76430319568cf06
Displays a link to your Event Website as a button
add_filter('tribe_get_event_website_link_label', 'tribe_get_event_website_link_label_default');
function tribe_get_event_website_link_label_default ($label) {
if( $label == tribe_get_event_website_url() ) {
$label = "Visit Website »";
$class = "my-button-class";
}
return '<a class="' . $class . '" href="' . tribe_get_event_website_url() . '">' . $label . ' </a>';
}
@theeventscalendar
theeventscalendar / List Widget sample tweaks.css
Last active August 29, 2015 14:22 — forked from anonymous/sample-css-tweaks-list-widget.css
Sample CSS tweaks for The Events Calendar List Widget
/** Change the size and colour of the widget title */
.tribe-events-list-widget h2.widget-title {
color: blue;
font-size: 30px;
}
/** Make each event standout with a new background and border */
.tribe-events-list-widget li.tribe-events-list-widget-events {
background: yellow;
border: 1px solid red;
@theeventscalendar
theeventscalendar / PRO List Widget sample tweaks.css
Last active August 29, 2015 14:22 — forked from anonymous/sample-advanced-list-widget-style-changes.css
Sample CSS tweaks for Events Calendar PRO's Advanced List Widget
/** Place a border around the entire widget */
.tribe-events-adv-list-widget {
border: 2px solid black;
}
/** Change the widget title colour and size */
.tribe-events-adv-list-widget h2.widget-title {
color: purple;
font-size: 30px;
}
@theeventscalendar
theeventscalendar / PRO Calendar Widget sample tweaks.css
Last active August 29, 2015 14:22 — forked from anonymous/sample-calendar-widget-custom.css
Sample CSS tweaks for Events Calendar PRO's Calendar widget
/** Place a border around the entire widget */
.tribe_mini_calendar_widget {
border: 2px solid black;
}
/** Change the widget title colour and size */
.tribe_mini_calendar_widget h2.widget-title {
color: purple;
font-size: 30px;
}
@theeventscalendar
theeventscalendar / PRO Calendar Widget grid section customizations.css
Last active August 29, 2015 14:22 — forked from anonymous/calendar-widget-grid-section-customizations.css
Sample CSS tweaks for Events Calendar PRO's Calendar widget
/** Change the background colour of the grid header area */
.tribe_mini_calendar_widget thead,
.tribe_mini_calendar_widget .tribe-mini-calendar-nav td {
background: lightblue;
}
/** Change the colour scheme of the days of the week */
.tribe_mini_calendar_widget .tribe-mini-calendar-dayofweek {
background: yellow;
color: black;
@theeventscalendar
theeventscalendar / Featured Venue Widget sample tweaks.css
Last active August 29, 2015 14:22 — forked from anonymous/sample-featured-venue.css
Sample CSS tweaks for Events Calendar PRO's Featured Venue widget
@theeventscalendar
theeventscalendar / Countdown Widget sample tweaks.css
Last active August 29, 2015 14:22 — forked from anonymous/countdown-widget-sample.css
Sample CSS tweaks for Events Calendar PRO's Countdown widget
/** Change the colour and other properties of the venue widget title */
.tribe-events-countdown-widget h2.widget-title {
color: #fa0;
transform: rotate( -2deg );
}
/** Make the event title uppercase and green */
.tribe-events-countdown-widget .tribe-countdown-text a {
color: #10c050;
text-transform: uppercase;
@theeventscalendar
theeventscalendar / Renaming calendar views.php
Last active February 22, 2016 23:11 — forked from anonymous/view-change-tec-391.php
Renames Calendar Views
// We want to adapt the names of views listed within the Tribe Events Bar
add_filter( 'tribe-events-bar-views', 'rename_tribe_views_in_selector', 100 );
function rename_tribe_views_in_selector( $views ) {
// This lists the original view names you wish to change along
// with the substitutes to wish to use in their place
$to_change = array(
'List' => 'All Events',
'Month' => 'Calendar',
'Photo' => 'Picture Board',
@theeventscalendar
theeventscalendar / Renaming view slugs.php
Last active March 28, 2016 17:34 — forked from anonymous/custom-view-slugs.php
Changes the names of the slugs used for events calendar views
<?php
/**
* Modify the "bases" used to form event URLs for various views.
*
* @param array $bases
*
* @return array
*/
function rename_event_view_slugs( $bases ) {
if ( isset( $bases['month'] ) ) $bases['month'] = [ 'calendar', 'calendar' ];