Disable The “Page Header” For Portfolio Items
// Disable The "Page Header" For Portfolio Items
function my_disable_portfolio_page_header( $return ) {
if ( is_singular( 'portfolio' ) ) {
return false;
}
return $return;
}
add_filter( 'wpex_display_page_header', 'my_disable_portfolio_page_header', 20 );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)