• Resolved kn9

    (@kn9)


    Hi Ryan,

    Great plugin. Wondering if this is possible to add close banner option at top right corner to give user choice to close the banner?

    I would appreciate if you could advise or point me to the right direction to achieve this.

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author rpetersen29

    (@rpetersen29)

    Hi @kn9 This is on the backlog of things to do. Please be on the lookout in the future.

    In order to do it yourself: You would need to put an element within your text, something like <div class="simple-banner-close">x</div>, add some custom css to .simple-banner-close to position it, and then add some custom javascript to implement a click listener to remove the simple banner div when that x is clicked. You would may also need to remove any padding or margin you’ve added to your header, if any. And you may also need to create a separate scenario for mobile views. For an enhanced experience, you may want to also store a cookie in the user’s browser indicating they had clicked close previously and remove the banner again, or else the banner will just show up each new page they go to.

    • This reply was modified 6 years ago by rpetersen29. Reason: typo
Viewing 1 replies (of 1 total)

The topic ‘close banner option’ is closed to new replies.