• Resolved jmandl

    (@jmandl)


    Hey there. Thanks for the code that fixed my other question about putting the bar on the bottom. Two more things for ya now.

    1- Is there a way to make it go below the bottom footer as it’s end position, so it doesn’t cover it?

    2- I’d like to show the bar only on post pages…or any page besides the front page as there are a number of ways to optin there. I found your earlier post and tried that CSS but it’s not working. I’m wondering if maybe it conflicts with the bottom solution? Or well, you’ll know better than me. I used: add_filter( ‘mctp_show_bar’, ‘myprefix_show_bar’ );

    function myprefix_show_bar() {

    // only show on single posts and pages
    if( is_single() ) {
    return true;
    }

    return false;
    }

    Thanks! – Jason

    https://www.ads-software.com/plugins/mailchimp-top-bar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Jason,

    1) This is something we’ll be implementing once we offer the “bottom” position in the plugin, it required quite some custom JavaScript so it’s a little hard to write it down here.

    2) Please use the following code to show the box everwhere EXCEPT for your home page.

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

    Hope that helps!

    Ps. should you have a quick minute to spare, a plugin review would mean a lot to me!

    Thread Starter jmandl

    (@jmandl)

    Hmmmm….still seems to show on the home page? Is their a typo in that code by chance?

    Plugin Author Danny van Kooten

    (@dvankooten)

    That is very strange, is this with the latest version of the plugin? The latest version includes a fix for the filter not working in some situations.

    Also, where are you adding this code? It’s meant to go inside the functions.php file of your theme.

    Just re-checked the code, should be good!

    Thread Starter jmandl

    (@jmandl)

    Hmmm…weird. I did see I was one version back…and just updated…but the same problem occurs. Also noticed that when moving it to the bottom, it seems to leave a space at the top bumping down the menu nav (presumably thinking the bar is there?)…so maybe I have to wait anyway until you officially release functionality…bummer I really like this! Any estimate on release date?

    Can I change the color on the ▲ cursor to white and change the right position to 200px.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hiding bar on home page/one page’ is closed to new replies.