Skip to:
Content
Pages
Categories
Search
Top
Bottom

put admin bar links somehwere else


  • jenyus
    Member

    @jenyus

    Does anyone know where i can find the code for the admin bar? i’d like to take those links and put them elsewhere.

    Thanks

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

  • pcwriter
    Participant

    @pcwriter

    @jenyus

    Here comes some shameless self-promotion! Try the beta-version of my plugin: Add-All-Nav-Links-To-BP-Adminbar. You can add all your main navigation items to the bp-adminbar, hide your theme’s main nav, then customize your new adminbar just about any way you like, including repositioning the whole thing anywhere on your pages. Here’s a screenshot of the backend admin panel: http://i33.tinypic.com/2nvea8j.jpg

    You can download from my site here:
    http://nowrecovery.com/downloads/add-all-nav-links-to-bp-adminbar2.1beta.zip

    The current release is available here:
    https://buddypress.org/community/groups/add-all-nav-links-to-bp-adminbar/

    If you try it, please let me know what you think in the plugin’s forum :-)


    jenyus
    Member

    @jenyus

    hmmm, sounds like it would probably work. only question is how do i force it to appear under my header? i’d prefer to not have to do relative positioning to make it line up correctly.

    Thanks


    Hugo Ashmore
    Participant

    @hnla

    Then you should customise your theme and move the admin bar from the footer to an inflow position after the header, it’s that or use the positioning property absolute (bad idea) or relative using a huge offset value equally not a great idea – to effect the adminbar placement.


    jenyus
    Member

    @jenyus

    Where do i find the call to the admin bar? its not in the footer for my theme so if i knew what the call was i could search for it a lot easier.

    yeah, i dont want to do relative or absolute positioning.


    jenyus
    Member

    @jenyus

    why is it that your screenshot has all sorts of cool features and when i install it I only have 2 sections?


    Hugo Ashmore
    Participant

    @hnla

    To be more accurate the adminbar is added to the wp_footer via an add_action in the core adminbar file so you would need to remove that action and add a new action ‘bp_after_header’

    You would do something along the lines of [not tested]

    remove_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 ) ;
    add_action( ‘bp_after_header’, ‘bp_core_admin_bar’, 8 );

    Probably ought to be in a wrapper function? and would be run from a functions.php file in a child theme to avoid editing of any core files.


    pcwriter
    Participant

    @pcwriter

    @jenyus

    You probably downloaded the current version from the repo.

    Get the beta release of V2.1 (with all the cool features) from my site here:
    http://nowrecovery.com/downloads/add-all-nav-links-to-bp-adminbar2.1beta.zip


    jenyus
    Member

    @jenyus

    thanks @hnla, i’ll try that

    @pcwriter: how do i put links in the wordpress menu 1 &2? do i use the menu creator in wordpress?

    thanks!


    pcwriter
    Participant

    @pcwriter

    @jenyus

    Yes. In WP3, create your menus in “Appearance” > “Menus”.

    Then copy the menu names to the appropriate fields in “Settings” > “BP-WP-Navbar”.
    – – – – – OR – – – – –
    Give me about an hour to upload the latest version of the plugin to the repository, and then update. The new V2.1 handles the menu insertion automatically (you still have to create your menus yourself though). Plus, you get all the other cool options to play with too!


    jenyus
    Member

    @jenyus

    awesome! thanks!


    pcwriter
    Participant

    @pcwriter

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘put admin bar links somehwere else’ is closed to new replies.
Skip to toolbar