WordPress.org

Ready to get started?Download WordPress

Forums

Hide page title only on certain pages (1 post)

  1. redkite
    Member
    Posted 1 year ago #

    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 - http://www.redkitecreative.com/dev/bimmsport/shop/)

    I tried using in_the_loop() to prevent this but it's not working. Can someone please help?

Topic Closed

This topic has been closed to new replies.

About this Topic