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

    (@hchouhan)

    Hello,

    Please add below code to the “functions.php” file in your active theme. This will show the “Top Bar” only on the Blog Page, Single post page and the archive pages such as category, etc.

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

    Let me know if that works.

    This code worked perfectly for me! Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I display the Top Bar only on the "blog" section of my site?’ is closed to new replies.