Hide page title only on certain pages
-
I’ve tried various methods of hiding the WordPress-generated page title on pages where the Shopp plugin is active. This is the only one I’ve gotten to work correctly:
function bimm_title_disabler() { if ( is_shopp_page() && in_the_loop() ) { add_filter( 'the_title', '__return_false' ); } }
However, it’s affecting the titles of pages in the footer nav menus too (in yellow on this page – https://www.redkitecreative.com/dev/bimmsport/shop/)
I tried using in_the_loop() to prevent this but it’s not working. Can someone please help?
- The topic ‘Hide page title only on certain pages’ is closed to new replies.