Skip to content

Instantly share code, notes, and snippets.

View csbeck's full-sized avatar

Chris Becker csbeck

View GitHub Profile
@csbeck
csbeck / gist:5134677
Created March 11, 2013 14:37
Genesis Grid Template
<?php
/**
* Template Name: Portfolio Grid
* This file displays a Grid within a page.
*/
add_action( 'genesis_post_content', 'genesis_do_post_content' );
/**remove_action( 'genesis_loop', 'genesis_do_loop' );**/
add_action( 'genesis_loop', 'child_grid_loop' );
@csbeck
csbeck / custom_archive_genesis_cb01
Last active December 10, 2015 23:48
Custom Archive listing page for use in Genesis. Includes pagination, showing custom fields content in posts which are in a category.
<?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() {