Viewing 7 replies - 1 through 7 (of 7 total)
  • I’d love to have this option too!

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi both,

    Great suggestion, adding this to the roadmap. Hope to implement this within a couple of weeks. ??

    Hi there,

    Any update on this option?

    Cheers

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello James,

    We are still looking into how the feature should be implemented. Currently there’s a simple solution based on cookie but that doesn’t guarantee someone is subscribed. It can be done with the following filter

    add_filter( 'mctb_show_bar', function( $show ) {
        return ! isset( $_COOKIE['mc4wp_email'] ) || isset( $_POST['_mctb'] );
    } );

    This will hide the top bar for people who have subscribed to your newsletter. You can add it to the functions.php file in your theme.

    The function script doesn’t seem to be working for me.
    Would be great to have the cookie setting in the plugin, like how many times to show per visitor, hide the cookie for X days, etc..

    I tried the function script also and it didn’t work. And I don’t think this issue was resolved in the update. Can we get an update on this or do I need to go to another plugin?

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hey there,

    The code snippet previously mentioned will work for all the forms added by our MailChimp for WordPress plugin. If you want to take the bar into account as well (which I presume you would), please use the following snippet.

    add_filter( 'mctb_show_bar', function( $show ) {
    	return ( ! isset( $_COOKIE['mc4wp_email'] ) && ! isset( $_COOKIE['_mctb'] ) ) || isset( $_POST['_mctb'] );
    } );

    Note that will only work if your Top Bar plugin is at least at version 1.2 (the update we just pushed out).

    PS. If you were VERY quick in updating to version 1.2 – please re-download it from www.remarpro.com. Your settings will be preserved.

    Hope that helps. If not, let me know!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Stop showing bar to those who have signed up’ is closed to new replies.