Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing Userbar Login

Viewing 8 replies - 1 through 8 (of 8 total)
  • @djpaul

    Keymaster

    remove_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );

    Put it into/make a file called bp-custom.php. I think it lives in /plugins/buddypress/, but I’m sure someone will correct me if it isn’t.

    @jodyw1

    Participant

    Wait, isn’t bp_adminbar the bar at the top? Wouldn’t I be disabling the login on the top bar instead of bp_userbar?

    @djpaul

    Keymaster

    Sorry, read your post earlier as that top bar! Oops!

    @johnjamesjacoby

    Keymaster

    I guess the easiest way to do this, would be to edit the userbar.php file in your active member theme, and replace everything between…

    <?php else : ?>

    and…

    <?php endif ?>

    Remember that commenting out the HTML doesn’t stop the PHP from getting processed, so all of the “_e”‘s are getting echo’ed even though you commented out the HTML. :)

    @jodyw1

    Participant

    Thanks J^3.

    By doing this, I also learned how the optionsbar and the userbar play together.

    @toregus

    Participant

    Thanks J^3.

    By doing this, I also learned how the optionsbar and the userbar play together.

    Hi Jodyw1!

    Can you please show how you did that? I’m trying to remove some things from the userbar as well. Activity and log out/in has to go (but I still want the functionality).

    Tore

    @toregus

    Participant

    @toregus

    Participant

    I just found out a much simpler way to do this. Edit base.css like below. Just add display : none.

    #userbar ul li a#my-activity {

    -moz-background-clip:border;

    -moz-background-inline-policy:continuous;

    -moz-background-origin:padding;

    background:transparent url(../images/icons/activity_bullet.gif) no-repeat scroll 16px 50%;

    display:none;

    }

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Removing Userbar Login’ is closed to new replies.
Skip to toolbar