Viewing 1 replies (of 1 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    You will have to use a filter to disable the bar on certain pages. The following example only loads the Top Bar on your blog post pages.

    add_filter( 'mctb_show_bar', function( $show ) {
        return is_single();
    } );

    Another example, this only loads the bar on your “contact” page.

    add_filter( 'mctb_show_bar', function( $show ) {
        return is_page('contact');
    } );

    Have a look at the Conditional Tags page for all accepted functions.

Viewing 1 replies (of 1 total)
  • The topic ‘How to exclude the topbar from certain pages’ is closed to new replies.