Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to hide / show on certain pages #5

Open
andrewlimaza opened this issue Mar 28, 2018 · 2 comments
Open

Option to hide / show on certain pages #5

andrewlimaza opened this issue Mar 28, 2018 · 2 comments

Comments

@andrewlimaza
Copy link
Owner

There should be two options:

  1. Show on following pages.
  2. Hide on following pages.
@wisdominteractive
Copy link

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants