• Resolved capturecontent

    (@capturecontent)


    Hi Guys,

    I need to hide the top bar on all pages other than the home page. I have found what I believe to be CSS however the code doesn’t appear to work. Where should I be placing the code?

    Thanks,

    Lewis

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Lap

    (@lapzor)

    Something like this may work for you:

    add_filter( ‘mctb_show_bar’, function( $show ) {
    return is_home();
    } );

    If that doesn’t work for you you probably need this:

    add_filter( ‘mctb_show_bar’, function( $show ) {
    return is_front_page();
    } );

    https://kb.mc4wp.com/adding-code-to-to-your-website/

    Hope that helps. If you have any questions, please let us know!

Viewing 1 replies (of 1 total)
  • The topic ‘Hide on all pages other than home page’ is closed to new replies.