Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Add links into menu


@mercime
Keymaster

@mercime

Hi ant60 – just to clarify, do you mean you want logged-in user’s link to his/her profile page appear in your navigation menu? If so, you can add this code

`<?php if ( is_user_logged_in() ) : ?>

<li><a href=”<?php echo bp_loggedin_user_domain() ?>”></li>

<?php endif; ?>`

to your theme’s header.php file within

<ul id="nav">
<li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>
<a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a>
</li>
<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>
<?php do_action( 'bp_nav_items' ); ?>
</ul><!-- #nav -->

Skip to toolbar