Skip to content

Instantly share code, notes, and snippets.

View jamigibbs's full-sized avatar

Jami Gibbs jamigibbs

View GitHub Profile
@jamigibbs
jamigibbs / gist:157b347a958b39023761
Created May 5, 2015 16:16
TEC: Input and Select Elements
#tribe_events_event_details input, #tribe_events_event_details select {
padding: 10px 15px;
}
@jamigibbs
jamigibbs / gist:ffc8f6a63f48ba73399f
Created May 7, 2015 14:56
TEC: Change Results Title Text
add_filter( 'gettext', 'events_to_new_title' );
function events_to_new_title( $txt ) {
if ( class_exists( 'TribeEvents' ) ) {
return str_replace( 'Events for', 'New Title Text', $txt );
}
return $txt;
}
@jamigibbs
jamigibbs / gist:c4c86cc47adac78a9ccb
Created May 11, 2015 20:14
TEC: Jetpack social icons on events
function tweakecp_add_jpshare() {
if ( function_exists( 'sharing_display' ) ) {
$shares = sharing_display( '', true );
$assess = trim($shares);
if ( empty($assess) ) $shares = ' sharing_display() is not returning anything ';
}
return $shares;
@jamigibbs
jamigibbs / gist:217de2a8286932d55f87
Created May 12, 2015 21:28
TEC: Remove venue and organizer meta box for specific user role
add_action( 'admin_head', 'jg_events_role', 10 );
function jg_events_role() {
if( current_user_can('editor') ) { ?>
<style type="text/css">
table#event_venue, table#event_organizer { display: none; }
</style>
<?php }
@jamigibbs
jamigibbs / gist:d17f29f25bb0ad80bb99
Created May 12, 2015 21:55
TEC: Add Jetpack sharing to individual events
function tweakecp_add_jpshare() {
if ( function_exists( 'sharing_display' ) ) {
$shares = sharing_display( '', true );
$assess = trim($shares);
if ( empty($assess) ) $shares = ' sharing_display() is not returning anything ';
}
return $shares;
@jamigibbs
jamigibbs / gist:108d3913adc5a2545251
Created May 22, 2015 13:21
Advocator: Home Top Area
<div class="icon_hover">
[icon type="refresh" size="3x" pull="center"]
<h3>OUR PROCESS</h3>
<p>Aptent praesentium penatibus, fames debitis optio fames</p>
<a href="#">See how we work</a>
@jamigibbs
jamigibbs / CSS
Last active August 29, 2015 14:21
TRT: Design
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Defaults
2.0 Headings
2.1 Spacing
3.0 Blockquotes
4.0 Tables
5.0 Lists
6.0 Tags
@jamigibbs
jamigibbs / gist:e0afb22aec1e8c6ad7a3
Created June 10, 2015 20:28
Legislator Contact Form
[rescue_googlemap title="Rescue Themes Offices" location="5046 S Greenwood Ave, Chicago, IL 60615" zoom="14" height=250]
[rescue_spacing size="60px"]
[rescue_column size="one-half" position="first"]
<strong>Headquarters</strong>:
5046 S Greenwood Ave
Chicago, IL 60615
if ( is_page_template( 'template-home.php' ) && get_theme_mod( 'video_checkbox' ) == 0 ) {
@jamigibbs
jamigibbs / gist:b9f0fe0409ab9539ed6d
Created June 11, 2015 14:47
Heartfelt: Home Hero Text
<i class="fa fa-globe fa-4x left"></i>
It all began when reflecting on the tragic events of 9/11.
<br>
<a href="#">Our Story</a>