Skip to content

Instantly share code, notes, and snippets.

View jamigibbs's full-sized avatar

Jami Gibbs jamigibbs

View GitHub Profile
@jamigibbs
jamigibbs / gist:5463618f18655e2fa76a
Created April 25, 2015 15:46
Heartfelt: Navigation Padding
.bottom_nav_wrap .large-9 {
padding-top: 5em;
}
@jamigibbs
jamigibbs / gist:6e26e0113dca10465104
Created April 25, 2015 15:48
Heartfelt: Navigation Padding
.bottom_nav_wrap {
padding: 2em 0;
}
@jamigibbs
jamigibbs / gist:97012556818c274889c8
Created April 27, 2015 18:17
Advocator: rescue_wp_title function
/**
* Filters wp_title to print a neat <title> tag based on what is being viewed.
*
* @param string $title Default title text for current view.
* @param string $sep Optional separator.
* @return string The filtered title.
*/
function rescue_wp_title( $title, $sep ) {
if ( is_feed() ) {
return $title;
@jamigibbs
jamigibbs / gist:0bdf288885d7e5e43729
Created April 28, 2015 15:08
TEC: Ticket Container
.single-tribe_events #tribe-events-content div.cart, .single-tribe_events #tribe-events-content form.cart {
background: #272727;
border: 1px solid #eee;
clear: both;
margin: 30px 0;
padding: 0 4% 3%;
}
@jamigibbs
jamigibbs / gist:9a267cc274ca7f9c05f3
Created April 28, 2015 15:18
TEC: Woo Tickets Button
.tribe_events .woocommerce button.button.alt, .tribe_events .woocommerce input.button.alt {
background-color: #efefef;
}
@jamigibbs
jamigibbs / gist:7069bcbc2818a77e7eeb
Created April 28, 2015 16:12
Show content excerpt on category and archive pages
<?php if ( is_category() || is_archive() ) {
the_excerpt();
} else {
the_content( __( 'Continue Reading', 'rescue' ) );
} ?>
@jamigibbs
jamigibbs / gist:5fbcaa7da829b4a31637
Created April 28, 2015 16:13
Display the content of a post or page
<?php the_content( __( 'Continue Reading', 'rescue' ) ); ?>
@jamigibbs
jamigibbs / gist:bf081e1dfff6fe310507
Created April 28, 2015 16:42
Rescue Shortcodes: Clearing Button and Map
[rescue_button color="blue" url="http://rescuethemes.com" title="Visit Site" target="blank" class="right" border_radius=""]Sample Content[/rescue_button]
[rescue_clear_floats]
[rescue_googlemap title="Rescue Themes Offices" location="5046 S Greenwood Ave, Chicago, IL 60615" zoom="14" height=250]
@jamigibbs
jamigibbs / gist:3882fd8c42dd011e8af5
Created May 1, 2015 17:41
TEC: Query Specific Event Category
$events_query = tribe_get_events(
array(
'eventDisplay' => 'upcoming',
'posts_per_page'=> 3,
'tax_query' => array(
array(
'taxonomy' => 'tribe_events_cat',
'field' => 'slug',
'terms' => 'your-category-here'
)
@jamigibbs
jamigibbs / gist:534323961cfc200f5cb1
Last active August 29, 2015 14:20
TEC: Load stylesheet in admin
function load_custom_event_admin_style() {
wp_enqueue_style( 'custom_wp_admin_css', get_stylesheet_directory_uri() . '/admin-events.css', false, '1.0.0' );
}
add_action( 'admin_enqueue_scripts', 'load_custom_event_admin_style' );