OceanWP: Hide the Page Title Bar on Pages
Hides the page header (title and breadcrumb bar) that OceanWP shows at the top of pages, so designed pages start right under the menu.
Opens WPIDE on
Code
add_filter( 'ocean_display_page_header', function ( $display ) {
return is_page() ? false : $display;
} );
Notes
Change is_page() to another condition, for example is_singular( 'product' ), to target other content.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.