Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #994766
    karaokelove
    Participant

    Wordpress Version: 4.5.2
    Themeco Version: 4.4.2
    Cornerstone Version: 1.2.4

    I followed some instructions on how to remove the WordPress toolbar for everyone except Admin, and it was working fine. Now it’s stopped working for some reason.

    This is the code I posted into the functions.php file of my X Child theme.

    add_action(‘after_setup_theme’, ‘remove_admin_bar’);

    function remove_admin_bar() {
    if (!current_user_can(‘administrator’) && !is_admin()) {
    show_admin_bar(false);
    }
    }

    #994770
    karaokelove
    Participant

    And I guess while I’m seeing help for the tool bar, I’m wondering how to set up my topbar like http://www.testyourmight.com (very top right).

    Screenshot 1: https://www.dropbox.com/s/x1hltg0ujjl3ahz/Screenshot%202016-05-16%2020.59.53.png?dl=0

    Screenshot 2: https://www.dropbox.com/s/jsd0v7ejp0bl887/Screenshot%202016-05-16%2021.00.50.png?dl=0

    When you get an alert or an IM, you get a small red notification next to the respective icons, with the number of alerts/IMs you have.

    #994954
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! You can use a third party plugin to hide the admin bar for users except the admins. Please refer to this link https://wordpress.org/plugins/hide-admin-bar-from-non-admins/

    Regarding the Topbar IM alerts, this could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding. Take care!

    #995537
    karaokelove
    Participant

    Thanks for the info!

    #995600
    John Ezra
    Member

    You’re most welcome!

  • <script> jQuery(function($){ $("#no-reply-994766 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>