Skip to:
Content
Pages
Categories
Search
Top
Bottom

wordpress top bar


  • mechwiy
    Participant

    @mechwiy

    Hello,

    I would like to know how can we remove the wordpress bar, I don’t want it displayed for the users and I don’t want the users to have access to the wp-admin which is actually the case.

    And also actually the notifications are displayed on the wordpress bar and not on the notifications buddypress link in the menu, how can I change that.

    screenshot here : http://image.noelshack.com/fichiers/2018/21/5/1527269099-buddy.png

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)

  • Venutius
    Moderator

    @venutius

    There’s a number of plugins that will allow you to remove the wp-admin top bar, just search the plugin directory.

    Hide Admin Bar


    mechwiy
    Participant

    @mechwiy

    Thank you for your answer, what about the notification, how can I put it beside the buddypress link in the menu, cuz I choosed the buddypress link in the menu and despite that there are no notifications displayed beside of them.

    edit : like you can see in the screenshot here : http://image.noelshack.com/fichiers/2018/21/6/1527340763-menulinks.png I took the links directly from the buddypress category


    Venutius
    Moderator

    @venutius

    Isn’t there a lengthy discussion on that a couple of posts down from this one?


    mechwiy
    Participant

    @mechwiy

    ah yes I just saw it, I’ll try it, so there are no options to do it automaticly we have to go through the code ?


    Venutius
    Moderator

    @venutius

    I’m afraid not.


    mechwiy
    Participant

    @mechwiy

    Ok thank you for your answers.

    About the plugin that you gave me, what does he do ? cuz isn’t it more interesting to do directly “display:none” in the css instead using the plugin ? if of course it does the same thing cuz if it does, using the plugin will make the website heavier than using directly the “display;none” directly in the css code.


    Varun Dubey
    Participant

    @vapvarun

    @mechwiy You can add a new class to the body based on role
    Added following codes inside child theme functions.php or using snippet plugin

    add_filter( 'body_class','adminbar_body_classes' );
    function adminbar_body_classes( $classes ) {
     
    if ( !current_user_can( 'level_10' ) ) {
    				$classes[] = 'no-adminbar';
    			}
         
        return $classes;
         
    }

    after that add following inside custom CSS using customizer

    html body.no-adminbar {
        margin-top: -32px !important;
    }
    body.no-adminbar #wpadminbar {
        display: none;
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar