-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Remove Toolbar Frontend #16
Comments
Thanks, will take a look at this. |
I can confirm it's working on my end, could you provide more information? You could try run this function within your functions.php to debug and see if it works? add_filter('show_admin_bar', '__return_false'); The module for this function is very basic— |
@darrenjacoby Hi! If you add the mentioned one above, it works. If I remove the above and add in intervention one, it doesn't work as expected. :/ |
@renatonascalves could you try with the intervention function and specify an user role? eg. (depending on the user role, or is it perhaps a custom user role you're using?) |
Sorry! Forgot to come back and provide my feedback. That error still exists. It seems user settings takes precedence. The same doesn't happen if one uses the function without checking the user role though. |
I'm still unable to replicate. Could you provide more information? Perhaps a GitHub link to the project? Are you perhaps using a custom user role? Do other modules work as expected that require user roles? |
Strange! Really strange! I tried these:
None of them work. Only when I add like that: |
That is strange. If you could provide a link to the project I could try debug from there. Just to ask, are the other modules working (that have user role options) ? |
Just checking in here? I would like to resolve so that I may close the issue. |
Works for me. Option in the admin panel is enabled, the toolbar is not displayed in the frontend. |
Same, I haven't been able to replicate no matter what I've tried. |
@darrenjacoby I decided to keep using |
Not sure if that's the intention but if I set up to show the tool bar in the user profile:
intervention('remove-toolbar-frontend');
has no effect.I presume it would overide what a user might add there.
The text was updated successfully, but these errors were encountered: