Skip to content

Instantly share code, notes, and snippets.

View smokeyfro's full-sized avatar

Chris Rault smokeyfro

View GitHub Profile
@smokeyfro
smokeyfro / 0_reuse_code.js
Last active August 29, 2015 14:23
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
butler_add_action( 'init', 'canva_do_remove_page_comments_support' );
function canva_do_remove_page_comments_support() {
remove_post_type_support( 'page', 'comments' );
}
<p>Azure Standard, Frontier Wholesale and Bountiful Baskets are some of our sources of organic or non-GMO foods.</p>
<p>We have been ordering bulk spices, herbs and tea from the Frontier co-op for several years.</p>
<h3>Azure Standard</h3>
<p>We recently started to pick up the monthly Azure Standard order for Lake Mead City / Meadview/ Dolan Springs.</p>
<p>Azure is located in Oregon and once a month they deliver via truck to Kingman (among many other stops). To see the prices you have to open a free account at https://www.azurestandard.com</p>
@smokeyfro
smokeyfro / gist:3964564
Created October 27, 2012 13:06
Features Block - Duke Admissions Custom CSS
/* Duke Admissions Example - Part 1 */
.hwr-features-1 .hwr-feature-title span{
display: block;
width: 64px;
height: 64px;
margin: 0 auto 10px auto;
}
.hwr-features-1 li.color1 h2 span {
background: #0D2E62;
}
@smokeyfro
smokeyfro / is_blog.php
Created October 25, 2012 10:59 — forked from wesbos/is_blog.php
WordPress is_blog()
function is_blog () {
global $post;
$posttype = get_post_type($post );
return ( ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ( $posttype == 'post') ) ? true : false ;
}
Usage:
<?php if (is_blog()) { echo 'You are on a blog page'; } ?>