Skip to content

Instantly share code, notes, and snippets.

@davechu
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davechu/9cb21c077ccb57bb2fb4 to your computer and use it in GitHub Desktop.
Save davechu/9cb21c077ccb57bb2fb4 to your computer and use it in GitHub Desktop.
This would go in functions.php. But you knew that! :)
add_action('genesis_before', 'dc_cut_out_content');
function dc_cut_out_content() {
if ( is_page('Sample Page') ) {
remove_action ('genesis_loop', 'genesis_do_loop');
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
remove_action( 'genesis_sidebar_alt', 'genesis_do_sidebar_alt' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment