• Resolved alwaysoptimistic

    (@alwaysoptimistic)


    Hi there, I LOVE this plug-in.

    I am wondering how I can hide it just on the home page, only, as there is a cool looking but redundant sign up bar right below, built in as part of the theme on the home page.

    Head up: Be gentle with me, lol. i’m not a coder but I can work my way through most basic coding / re-coding if you can give me specifics about where to go.

    Thanks so much in advance for your help! Craig

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    Here is the filter:

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

    Here is how to add it, make sure you have a good backup!
    https://kb.mc4wp.com/adding-code-to-to-your-website/

    Hope that helps!

    Kind regards,

    Thread Starter alwaysoptimistic

    (@alwaysoptimistic)

    Thanks Lap. I tried this but nothing happened.

    Tried editing on the wp platform and in Cpanel as well.

    any thoughts?

    Plugin Contributor Lap

    (@lapzor)

    Hi,

    Instead of !is_home(); you can try !is_front_page();

    Make sure to do this in your themes functions.php or via the plugin mentioned on the KB page. Not in your WordPress core functions.php.

    Hope that helps!

    Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide Top Bar from front page only’ is closed to new replies.