Skip to:

[Resolved] Unable to style my admin bar menu

  • Avatar of danbpfr



    I use this function to create a custom adminbar menu. This works well.
    I want to show the total site members count. The count works.
    But the output desperatly stays on 2 lines for the user count.
    I tried many things like span, div, css display block, etc, nothing to do. Thze menu ul and li don’t accept any css parameters, except at least the strong tag!!!

    The only span who is working pefectly is when i use the unread-count class on it.

    I searched in global.js but didn’t find…
    If somebody very CSS clever can help, it would be much appreciated.

    The function i use witch output count and user over 2 lines…. :-(
    Put this in functions.php to see what is wrong..

    `function bp_adminbar_custom_admin() {
    if (current_user_can(‘level_10′)){
    echo ‘

  • Quick Admin‘;
    echo ‘
    • ‘. bp_get_total_site_member_count() .’ Users ‘;
      echo ‘
    • Plugins‘;
      echo ‘

    add_action(‘bp_adminbar_menus’, ‘bp_adminbar_custom_admin’, 99);`

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

You must be logged in to reply to this topic.