andrewlimaza/sitewide-notice-wp

Option to hide / show on certain pages

Opened this issue · 2 comments

There should be two options:

  1. Show on following pages.
  2. Hide on following pages.

Great plugin! Thanks, it does exactly what we're looking for except for the ability to hide the sitewide notice bar on certain pages. I thought I saw that this was resolved in version 2.2.1 which is the version we're using but this option doesn't appear to be available?

There's no option as of 2.2.1 but there is a filter to override the show banner. That way you can use a custom function to hide it on certain pages/post_types etc.

Here is the filter - https://github.com/andrewlimaza/sitewide-notice-wp/blob/master/sitewide-notice-wp.php#L94