Skip to:

HTML/Javascript in Admin bar

  • Hello,
    I’m somewhat new to buddypress and html in general. I’m interested in placing a “Login with facebook” button on my admin bar. I’d like it to be next to the “sign up” or “login” button on my website when users first arrive. I’ve been searching around for days trying to figure this out, but can’t seem to find if this is possible. I’ve read about adding some custom bp php file to the plugin directory but don’t know what to do from there. I appreciate any help!

    Sorry….my website is and the code that I’m using to add the button is javascript. I can paste that on here if helpful.

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

  • Virtuali


    You will have to branch the facebook login with buddypress first, you can do this through a plugin.

    Than you would take do action hook from the plugin and place it in the admin bar, 2 choices of doing so, in bp-core, or bp-custom

    I think I’ve already done that first part. I have a facebook login plugin which works perfectly. When you click log on the facebook option is right there. However, I’d rather have a button directly on the admin bar. Is there any way that you could give me more information about placing the hook in the admin bar. I’m looking at the plugin’s website and it gives me the hooks I believe, but I don’t know how to implement them.



    I’ve taken quite an amount of time to test this out and I’ve concluded it just must be beyond my ability. I have the hooks provided to me by the plugin’s developer but I can’t figure out where to place them and how to implement it. I’ve found the location shown in the codex but I don’t understand how to simply add something to the admin bar without changing the menus. I just want to add this button to the bar if no one is logged on.

    On a side note, is there a way to make the admin bar thicker? I’d like it to be somewhat more substantial.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTML/Javascript in Admin bar’ is closed to new replies.
Skip to toolbar