Created
June 24, 2014 02:18
-
-
Save SusanRamsey/ab02ef7b3f177da26770 to your computer and use it in GitHub Desktop.
If you wish to display the Modern Blogger Pro theme without a header on one or more pages, use this Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Page No Header | |
*/ | |
//***Add Custom Body Class**/ | |
add_filter( 'body_class', 'no_header_body_class' ); | |
function no_header_body_class( $classes ) { | |
$classes[] = 'page-no-header'; | |
return $classes; | |
} | |
//***Remove Header**/ | |
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); | |
remove_action( 'genesis_header', 'genesis_do_header' ); | |
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment