Skip to content

Instantly share code, notes, and snippets.

View deckerweb's full-sized avatar
🏠
Working from home

David Decker deckerweb

🏠
Working from home
View GitHub Profile
@deckerweb
deckerweb / gist:2658811
Created May 11, 2012 10:24 — forked from anonymous/gist:2633852
WordPress Plugin Header Example
<?php
/**
* Plugin Name: Example Plugin Name
* Plugin URI: http://plugin-homepage.tld
* Description: A description of your plugin.
* Version: 1.0
* Author: Plugin Author Name
* Author URI: http://plugin-author-homepage.tld
* License: GPLv2 or later
* License URI: http://www.opensource.org/licenses/gpl-license.php
<?php
/**
* Template Name: New Tests Archive
*/
/** Remove original Primary Sidear -- add custom sidebar */
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
add_action( 'genesis_sidebar', 'csbeck_custom_sidebar_archive' );
function csbeck_custom_sidebar_archive() {
<?php
add_action('genesis_before_post_title', 'sfws_homepage_teaser_image');
/**
* Adds Images to Posts in Grid
*
* Takes the amount of posts and applies the right size image, whether it's a featured post or a grid block post.
*
* @category Grid Loop
* @author Jonathan Perez, SureFireWebServices <jperez@surefirewebservices.com>
<?php
/** Do NOT include the opening php tag! */
/** Activate Genesis HTML5 support */
add_theme_support( 'html5' );
<?php
//* Do NOT include the opening php tag
// Add support for 4-column footer widgets
add_theme_support( 'genesis-footer-widgets', 4 );
/* Column Classes
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css
--------------------------------------------- */
.five-sixths,
.four-sixths,
.four-fifths,
.one-fifth,
.one-fourth,
.one-half,
<?php
// Don't include the above
add_filter( 'wp_nav_menu_items', 'prefix_change_nav_date_format', 15, 2 );
/**
* Filter the Primary Navigation menu items in Genesis, to change the date format.
*
* @author Gary Jones
* @link http://www.studiopress.com/forums/topic/abbreviate-month-in-primary-navigation-bar-enterprise/
@deckerweb
deckerweb / 0_reuse_code.js
Created November 15, 2013 18:59
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