Forums
Home / Theme: OceanWP / remove title from category/single product page
(@guineder)
4 years, 3 months ago
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
(@apprimit)
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' );