Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created February 23, 2013 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save billerickson/5021632 to your computer and use it in GitHub Desktop.
Save billerickson/5021632 to your computer and use it in GitHub Desktop.
<?php
/**
* Remove items from grid posts
*
*/
function be_grid_post_customization() {
// make sure we're on a grid post
if( !in_array( 'one-third', get_post_class() ) )
return;
// Remove items we don't want
remove_action( 'genesis_post_content', 'genesis_do_post_content' );
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
}
add_action( 'genesis_before_post', 'be_grid_post_customization' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment