Last active
August 29, 2015 14:01
-
-
Save srikat/cdf49f785efbe10ba399 to your computer and use it in GitHub Desktop.
Remove Primary Navigation and Header Right widget area from homepage.
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 | |
//* Do NOT include the opening php tag | |
add_action( 'genesis_before_header', 'sk_home_specific' ); | |
/** | |
* Remove Primary Navigation and Header Right widget area from homepage. | |
* | |
* @author Sridhar Katakam | |
* @link http://sridharkatakam.com/ | |
*/ | |
function sk_home_specific() { | |
if ( is_home() ) { | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
unregister_sidebar( 'header-right' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment