Here is how to remove the page title from single custom post types in OceanWP. Just replace “podcasts” with the name of your custom post type:

// Disable page title on single posts
function disable_title( $return ) {
    if ( is_singular( 'podcasts') ) {
        $return = false;
    }
    return $return
}
add_filter( 'ocean_display_page_header', 'disable_title' );

Below is how to do it for the Blog/Archive page:

// Hide the page Title for the Blog Archive Page
function disable_title_on_podcast_archive( $return ) {
    if ( is_post_type_archive( 'podcasts' ) ) {
        return false;
    }
    return $return;
}
add_filter( 'ocean_display_page_header', 'disable_title_on_podcast_archive' );

Leave a Reply

Get in Touch

Please fill out the form below and we will get back to you ASAP

  • This field is for validation purposes and should be left unchanged.