Support » Plugin: MC4WP: Mailchimp Top Bar » hide permanently the close button

  • Resolved grayayer

    (@grayayer)


    For most notification bars I’ve used, there’s an option where rather than just toggling the bar open and close, one can permanently close it. This is often accompanied by a length of time this is closed, by setting a cookie. This prevents people who have already signed up for the newsletter from being bothered by it in the future. Any chance this feature is coming?

    Alternatively, for a simple hack, you could just have <span class=”mctb-close”>▼</span> change classes through jquery when clicked on, and folks like me could have css that then hides that element based on the class.

    Many thanks!

    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,

    We do not have a cookie system on it and such, but if you want to write your own code, this is some CSS you could use to completely hide the bar:

    #mailchimp-top-bar { display: none; }

    You would need to add your own logic as to when to run that code.

    Our other plugin, Boxzilla, that makes pop-ups, not a bar, does have the cookie feature to stay closed.

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

    understandable.
    If I wrote the jQuery and created a backend option for that, would you consider a pull request to the GitHub repository? https://github.com/ibericode/mailchimp-top-bar

    Plugin Contributor Lap

    (@lapzor)

    I can’t speak for Danny, who would make the final decision on that. It would have more chance of being included if it’s native JavaScript without further dependencies instead of jQuery.

    Maybe you can make it as it’s own WordPress plugin that works as an add-on to Topbar?
    http://hookr.io/plugins/mailchimp-top-bar

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘hide permanently the close button’ is closed to new replies.