Option to hide / show on certain pages
Opened this issue · 2 comments
andrewlimaza commented
There should be two options:
- Show on following pages.
- Hide on following pages.
wisdominteractive commented
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?
andrewlimaza commented
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