Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to add new top buttons ??


mypop
Participant

@mypop

This is how I did it.

I modified header.php in the buddypress theme AND the member theme.

There is probably a better way since the forums location is included as part of the integration, however it works, and you can use this principle to include a hard coded link to anywhere.

Find the bit of code that starts <div id="header">

The first bit is the routine to run the blogs page, the second opens up bbPress in a seperate tab.

`<?php if ( function_exists( ‘bp_blogs_install’ ) ) { ?>

<li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class=”selected”<?php } ?>><a href=”<?php echo get_option(‘home’) ?>/<?php echo BP_BLOGS_SLUG ?>” title=”<?php _e( ‘Blogs’, ‘buddypress’ ) ?>”><?php _e( ‘Blogs’, ‘buddypress’ ) ?></a></li>

<?php } ?>

<li><a href=”http://www.mypartyonparty.biz/forums&#8221; target=”_blank” title=”<?php _e( ‘Support’, ‘buddypress’ ) ?>”><?php _e( ‘Support’, ‘buddypress’ ) ?></a></li>

<?php do_action( ‘bp_nav_items’ ); ?>`

What I’d like to do is present the forums in the same way that is done on here (BuddyPress.org, ) that just needs a bit of thinking about…

Hope that helps

Skip to toolbar