Skip to content

Instantly share code, notes, and snippets.

View jamigibbs's full-sized avatar

Jami Gibbs jamigibbs

View GitHub Profile
@jamigibbs
jamigibbs / gist:bee04c3e9c1e6b026d7b
Last active August 28, 2015 16:12
Change Slug of a Plugin's Custom Post Type
<?php
/**
* Change Beer Directory plugin slug from 'beer' to 'soup'
*
* @link http://wordpress.stackexchange.com/questions/41988/redeclare-change-slug-of-a-plugins-custom-post-type
*/
function brewery_add_custom_rewrite_rule() {
// First, try to load up the rewrite rules. We do this just in case
@jamigibbs
jamigibbs / gist:7c23e7aef3531c0fce54
Created October 16, 2014 20:57
Whiskey Tango Foxtrot
.template_pets_wrap .pet_meta_wrap ul li:before {
content: "\f00c";
font-family: FontAwesome;
font-size: .85em;
display: inline-block;
margin-left: -1.2em;
width: 1.5em;
color: #e2e2e2;
}
@jamigibbs
jamigibbs / gist:087171889999c37d8f48
Created January 8, 2015 14:17
Customizer Specific Stylesheet
/**
* Custom Customizer Style
*/
function custom_customizer_style() {
wp_enqueue_style( 'rescue-customizer-style', get_template_directory_uri() . '/customizer/style.css', array(), '', 'all' );
}
add_action( 'customize_controls_enqueue_scripts', 'custom_customizer_style' );
0,15,30,45 * * * * curl -I http://rescuethemes.com/leafping/wp-cron.php?doing_wp_cron
@jamigibbs
jamigibbs / gist:5ad9eb0605a98fe10ab1
Last active August 29, 2015 14:15
Merch: Mobile Navigation Current Page Color
.top-bar-section li.current_page_item:not(.has-form) a:not(.button) {
color: #aaaaaa;
}
/* For mobile only, use this */
@media only screen and (max-width: 40em) {
.top-bar-section li.current_page_item:not(.has-form) a:not(.button) {
color: #aaaaaa;
}
/* Change the number to reflect however many prodcuts to show in a single row */
if (!function_exists('merch_loop_columns')) {
function merch_loop_columns() {
return 3;
}
}
@jamigibbs
jamigibbs / gist:5a2cb23dc6304155cb2e
Created February 24, 2015 17:46
Merch: Category Page
.woocommerce.archive ul.products li.product {
margin-bottom: 5em;
}
.woocommerce.archive ul.products li.product h3 {
top: 1.5em;
color: #616671;
}
.woocommerce.archive mark {
background-color: #f6f6f6;
color: #888f9e;
@jamigibbs
jamigibbs / gist:66a2dacc24d3fe6ec81f
Created March 2, 2015 15:45
Community Center: Font Awesome
@font-face{
font-family:FontAwesome;
src:url('../css/fonts/fontawesome-webfont.eot?#iefix') format('eot'),
url('../css/fonts/fontawesome-webfont.woff') format('woff'),
url('../css/fonts/fontawesome-webfont.ttf') format('truetype'),
url('../css/fonts/fontawesome-webfont.svg#FontAwesome') format('svg');
}
@jamigibbs
jamigibbs / gist:7679cb0ac06619dc6f7a
Created March 4, 2015 17:24
Advocator: Active Link
.top_header_wrap .top-bar-section li.current-menu-item:not(.has-form) a:not(.button) {
color: black;
}
@jamigibbs
jamigibbs / gist:8657ff6e5cdb8eebc394
Last active August 29, 2015 14:16
Advocator: Remove Footer Space
.footer_copyright {
display: none;
}