Created
November 6, 2015 04:29
-
-
Save phpbits/771eb5decf265cb75019 to your computer and use it in GitHub Desktop.
Filter Hero for Genesis Header Display
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 | |
/* | |
* Remove Full Height Hero Display | |
*/ | |
add_filter('hero4genesis_class', 'hero_class_filter'); | |
function hero_class_filter($class){ | |
if( is_page( 'behind-header-not-full-height' ) ){ | |
$key = array_search('hero4genesis-full', $class); | |
unset($class[ $key ]); | |
//or add it instead | |
//$class[] = 'hero4genesis-behind'; | |
} | |
return $class; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment