Skip to content

Instantly share code, notes, and snippets.

@jamigibbs
jamigibbs / gist:bee04c3e9c1e6b026d7b
Last active Aug 28, 2015
Change Slug of a Plugin's Custom Post Type
View gist:bee04c3e9c1e6b026d7b
<?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
View gist:7c23e7aef3531c0fce54
.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 Jan 8, 2015
Customizer Specific Stylesheet
View gist:087171889999c37d8f48
/**
* 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' );
View gist:ce8f51e33642573e6da6
0,15,30,45 * * * * curl -I http://rescuethemes.com/leafping/wp-cron.php?doing_wp_cron
@jamigibbs
jamigibbs / gist:5ad9eb0605a98fe10ab1
Last active Aug 29, 2015
Merch: Mobile Navigation Current Page Color
View gist:5ad9eb0605a98fe10ab1
.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;
}
View gist:c53ab185f45ba251e961
/* 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;
}
}
View gist:5a2cb23dc6304155cb2e
.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 Mar 2, 2015
Community Center: Font Awesome
View gist:66a2dacc24d3fe6ec81f
@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:76709205421b4bf1b011
Created Mar 4, 2015
Merch: Storewide notice top bar
View gist:76709205421b4bf1b011
.admin-bar p.demo_store {
top: 0;
}
p.demo_store {
padding: 0.5em 0;
font-size: 0.9em;
}
@jamigibbs
jamigibbs / gist:8657ff6e5cdb8eebc394
Last active Aug 29, 2015
Advocator: Remove Footer Space
View gist:8657ff6e5cdb8eebc394
.footer_copyright {
display: none;
}