Snippets: Disable Page Header for Blog Posts

unction myprefix_disable_post_page_header( $return ) {
    if ( is_singular( 'post' ) ) {
        $return = false;
    }
    return $return;
}
add_filter( 'wpex_display_page_header', 'myprefix_disable_post_page_header' );

Snippet Type: PHP

Posted Under: Blog

All PHP snippets should be added via a child theme's functions.php file.