Skip to:

custom button in buddy-bar

  • Unsal Korkmaz


    ok.. i read faq section but couldnt understand so good actually.

    what i want?

    just add new button to buddy-bar for my forum. a forum link to buddy-bar

Viewing 4 replies - 1 through 4 (of 4 total)
  • Well, if you’ve already read this and maybe this, and do not understand, unless you are prepared to further your understanding of PHP and WordPress’ API, you need to find a developer to write the code for you.



    Here’s a little something to try.

    Create a “bp-custom.php” file in your /wp-content/plugins/ directory.

    Put in the following code:

    function my_new_buddybar_button(){
    echo '<li class="no-arrow"><a href=""YOUR LINK"><img src="YOUR BUTTON" alt="" /></a></li>';
    add_action('bp_adminbar_menus', 'my_new_buddybar_button', 101);

    Untested, but should work…

    Change “101” to where your button should be.

    eg. “1” would move it to the beginning (right after the BP logo)

    Unsal Korkmaz


    thank you so much r-a-y



    to be fair to the OP, i think the buddypress admin bar documentation is quite difficult to follow. i imagine that it would be even more difficult for anyone whose first language is not english.

    (for example: “To change a function that is triggered by an action you have to unhook the current function that responds to the action and supply your own function that replaces the core function and then replace the add_action() call with one that responds to the same hook as the original function.”…)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘custom button in buddy-bar’ is closed to new replies.
Skip to toolbar