Skip to content

Instantly share code, notes, and snippets.

@phpbits
Created November 6, 2015 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpbits/771eb5decf265cb75019 to your computer and use it in GitHub Desktop.
Save phpbits/771eb5decf265cb75019 to your computer and use it in GitHub Desktop.
Filter Hero for Genesis Header Display
<?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