Skip to content

Instantly share code, notes, and snippets.

@phpbits
Created November 6, 2015 04:44
Show Gist options
  • Select an option

  • Save phpbits/1cd758956e9a8f0eabea to your computer and use it in GitHub Desktop.

Select an option

Save phpbits/1cd758956e9a8f0eabea to your computer and use it in GitHub Desktop.
Display Hero for Genesis Below the Header Section
<?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