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
(function($) { | |
$.fn.gravityFieldTypes = function() { | |
var $this = $(this); | |
$this.each(function() { | |
var $input = $(this).find('>:first-child'); | |
var $type = $input.prop('type'); | |
$(this).addClass($type); |
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( 'init', 'bg_shop_functions' ); | |
function bg_shop_functions() { | |
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); | |
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 ); | |
add_action( 'woocommerce_single_product_summary', 'add_shop_for_item_button', 20 ); | |
add_action( 'woocommerce_single_product_summary', 'add_wishlist_form', 30 ); | |
} |
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 | |
$terms = array( 'citywide', 'central', 'east', 'west', 'seasonal' ); | |
foreach( $terms as $term ) { | |
$events = tribe_get_events( | |
array( | |
'posts_per_page' => 4, | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'tribe_events_cat', |
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 | |
//Find the lowest term on the totem pole | |
$parents = array(); | |
$regions = get_the_terms( get_the_ID(), 'regions' ); | |
foreach( $regions as $region ) { | |
$parents[] = $region->parent; | |
} | |
foreach( $regions as $region ) { |
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 | |
add_filter( 'tribe_events_event_classes', 'remove_markup_events_widget' ); | |
function remove_markup_events_widget() { | |
global $post, $wp_query; | |
$event_id = $post->ID; | |
if ( ! $event_id ) { | |
return ''; |
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 | |
add_filter( 'tribe_community_events_event_categories', 'ce_fe_cats_order', 100 ); | |
/** | |
* Filter the $args for the event category option on the front-end form of Community Events | |
*/ | |
function ce_fe_cats_order( $args ) { | |
$event_cat_ids = (array) $currently_selected; | |
if ( ! empty( $event->ID ) && empty( $currently_selected ) ) { | |
$event_cats = wp_get_object_terms( $event->ID, TribeEvents::TAXONOMY ); |
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
.genesis-nav-menu .sub-menu .sub-menu { | |
margin: -48px 0 0 -199px | |
} |
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 | |
* This file contains one event in the month view | |
* | |
* Override this template in your own theme by creating a file 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 | |
add_action( 'genesis_entry_header', 'gb_share_buttons', 6 ); | |
//Add Social Sharing section to single posts | |
function gb_share_buttons() { | |
if( is_single() ) { | |
$url = get_permalink(); | |
?> | |
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 | |
/** | |
* Single Event Meta (Organizer) Template | |
* | |
* Override this template in your own theme by creating a file at: | |
* [your-theme]/tribe-events/modules/meta/details.php | |
* | |
* @package TribeEventsCalendar | |
*/ |