Support » Plugin: Scroll Triggered Boxes » Box not closing after Mailchimp signup

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

    (@dvankooten)

    Hi there,

    Are you using the MailChimp for WordPress? The code posted above will only work if using that plugin.

    Actually, by now the code can be simplified to the following.

    function my_prefix_show_stb_box($matched, $box_id) {
    
    	if(isset($_COOKIE['mc4wp_email'])) {
    		return false;
    	}
    
    	return $matched;
    }
    
    add_action('stb_show_box', 'my_prefix_show_stb_box', 10, 2);

    If you’re using another way to handle your MailChimp sign-ups it will be quite hard to accomplish the same thing.

    Hope that helps, let me know if it doesnโ€™t! ๐Ÿ™‚

    At the moment of writing my opening post i was not using the MailChimp for WordPress plugin. That’s why the code didn’t work of course.

    Using both plugins now and it works great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Box not closing after Mailchimp signup’ is closed to new replies.