Skip to content

Instantly share code, notes, and snippets.

View chaselivingston's full-sized avatar

Chase Livingston chaselivingston

View GitHub Profile
.woocommerce ul.products li:nth-of-type(7) {
display: none;
}
function jetpackme_related_posts_headline( $headline ) {
$headline = sprintf(
'<h3 class="jp-relatedposts-headline"><em>%s</em></h3>',
esc_html( 'You Might Also Like:' )
);
return $headline;
}
add_filter( 'jetpack_relatedposts_filter_headline', 'jetpackme_related_posts_headline' );
#subscribe-email input {
font-size:12px;
}
#subscribe-text p {
margin-bottom: 0;
}
// ==UserScript==
// @name Store Olark Helper
// @include https://chat.olark.com/*
// ==/UserScript==
var $ = unsafeWindow.jQuery;
// ------------------------------------------------------
// TOP BUTTONS
// ------------------------------------------------------
function cl_disable_carousel() {
$id = url_to_postid( "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] );
$disable = false;
if ($id == 67) {
$disable = true;
}
return $disable;
}
add_filter('jp_carousel_maybe_disable', 'cl_disable_carousel');
@chaselivingston
chaselivingston / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console