Created
November 6, 2015 04:44
-
-
Save phpbits/1cd758956e9a8f0eabea to your computer and use it in GitHub Desktop.
Display Hero for Genesis Below the Header Section
This file contains hidden or 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 | |
| /* | |
| * Override Settings Option for Full Height & Behind Header | |
| */ | |
| add_filter('hero4genesis_class', 'hero_below_header'); | |
| function hero_below_header($class){ | |
| if( is_page() ){ | |
| $key = array_search('hero4genesis-behind', $class); | |
| unset($class[ $key ]); | |
| $key2 = array_search('hero4genesis-full', $class); | |
| unset($class[ $key2 ]); | |
| } | |
| return $class; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment