This topic has 6 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #153269
     clem
    Participant

    Hi KLEO team

    I tried to install several plugins to hide the toolbar for all users exept admin and some other roles but don’t work because of the theme option : Admin Toolbar

    Here are the 3 plugins I tried :

    – Admin bar & dashboard control (Agbonghama Collin)

    – WP Admin UI (Benjamin Denis)

    – Admin Bar Disabler (Scott Kingsley Clark)

     

    There is already a topic at that subject but doesn’t solve my problem

    https://archived.seventhqueen.com/forums/topic/hide-admin-bar-for-specific-users

    I have tried the plugin you advice (WP Admin UI) but not the tuto because it is only for the toolbar visible by admin and I want some other roles having the toolbar as well

    Is there a way to do it working ?

    Thanks for your help

    Clem

     

    #153432
     Laura
    Moderator

    Hello, the theme option, do you have it on or off? Turn it off and test the plugins 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura 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 🙂

    #153648
     clem
    Participant

    Hi Laura !

    I tried on and off with all plugins and not work in both cases. I mean, if the theme option is on, I will have the toolbar for all roles, If it’s off, I will never have the toolbar

    No matter the settings I have in the different plugins

    I would like to have the toolbar, ONLY for the admin and the role I decide in the plugins but not for the ‘normal’ users of my site …

    #153766
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura 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 🙂

    #153878
     Radu
    Moderator

    Hi,

    De-activate for hiding admin bar plugins

    Set hide admin bar from admin -> theme options -> misc then add this code to child theme ( wp-content/themes/kleo-child/functions.php )

    COPY CODE
    
    add_action('after_setup_theme', 'add_admin_bar_for_admins');
     
    function add_admin_bar_for_admins() {
        if (current_user_can('Administrator') OR current_user_can('Editor') ) {
            show_admin_bar(true);
        }
    }
    

    Instead of editor role add your desired

    Note : Child theme needs to be installed and activated

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154080
     clem
    Participant

    Hi Radu !

    Thanks for the fonction but it still doesn’t work ?

    Anyway, I think I will manage it by another way, I turned off the theme option for the toolbar and have created a bookmark in my browser = mysite/wp-admin.com for the admin and other role allowed to go to the dashboard

    In fact I used the admin frontend toolbar only to access to the dashboard. that other way is as fast as the toolbar to do it

    Thanks anyway ! ?

    Cheers

    Clem

    #154107
     Radu
    Moderator

    Ok then
    Have a nice day

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?