Support » Theme: OceanWP » remove title from category/single product page

  • Hello,

    I need help removing/hiding the page title from the archives like categories and single product pages.

    Do I need to use some code for that?

    Thanks

    • This topic was modified 1 week, 1 day ago by Jan Dembowski. Reason: Title de-capped. Don't yell
Viewing 1 replies (of 1 total)
  • Hello,

    Try to add the below code to the child theme’s functions.php file to remove the page title. Edit the code as per your need –

    function disable_title( $return ) {
        if ( is_archive( 'post-type-name') || is_product() ) {
            $return = false;
        }
        return $return;  
    }
    add_filter( 'ocean_display_page_header', 'disable_title' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.