-
Author
-
November 14, 2014 at 11:11 #35415wisinyyandel7Participant
is there any plugin to hide admin bar for guests or visitors? I have read some posts from people and one of them is this one : Global Hide/Remove Admin Bar Plugin, but it hides the admin bar for roles..how about those ones that don’t have roles? like visitors? customers?
November 14, 2014 at 21:18 #35508LauraModeratorHello 🙂 check this one https://wordpress.org/plugins/hide-admin-bar-from-non-admins/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 14, 2014 at 21:31 #35510KamalModeratorHi,
To remove admin bar for subscriber or guest, add the following codeCOPY CODEadd_action('set_current_user', 'SweetDate_hide_admin_bar_subscriber'); function SweetDate_hide_admin_bar_subscriber() { if (!current_user_can('edit_posts')) { show_admin_bar(false); } }
to the functions.php of SweeyDate Child theme. You can find it Appearance>Editor>functions.php
If you want to Disable Admin Bar for All Users Except for Administrators,
then add the following codeCOPY CODEadd_action('after_setup_theme', 'SweetDate_remove_admin_bar'); function SweetDate_remove_admin_bar() { if (!current_user_can('administrator') && !is_admin()) { show_admin_bar(false); } }
to the functions.php and save. I hope this helps you.
Thanks,
KamalHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 14, 2014 at 21:36 #35512KamalModeratorAnd Sorry @Laura, I did not see you replied first. I was writing reply and you posted in that time. 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 14, 2014 at 21:42 #35514LauraModerator2 answers double help 😉 Dont worry @Kamal
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 18, 2016 at 23:54 #104881jsw548ParticipantHi
I tried adding these snippets to functions.php and it did not work.
I want to hid the black wp admin-bar at the top for all but administrator users and I especially want to hide it from non-logged in users.
It is the bar that has the below links when no one is logged in:
About WordPress
Log in
RegisterThanks
DavidFebruary 19, 2016 at 19:59 #105153LauraModeratorHello, try maybe https://es.wordpress.org/plugins/hide-admin-bar-from-non-admins/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
February 20, 2016 at 01:51 #105247LauraModeratorGreat 😀
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.