- This topic has 2 replies, 2 contibutors, and was last updated 8 years, 9 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Question
Answers
Viewing 3 posts - 1 through 3 (of 3 total)
- The question ‘Add menu item’ is closed to new replies.
BuddyBoss Home – Web › Support Forums › Solutions › Social Blogger › Add menu item
Tagged: menu
Hello,
I used a simple function to create a link to the users following activity page (eg /username/activity/following). The function works fine in other buddypress themes, im wondering what the specific conflict is here?
add_filter( ‘wp_nav_menu_items’, ‘my_nav_menu_profile_link’ );
function my_nav_menu_profile_link($menu) {
if (!is_user_logged_in())
return $menu;
else
$profilelink = ‘<li class=”menu-item”>‘ . __(‘My Feed’) . ‘‘;
$menu = $menu . $profilelink;
return $menu;
}
add_filter( ‘wp_nav_menu_items’, ‘custom_nav_item’, 10, 2 );
Thanks!
Never mind, i see my syntax error. Thanks!
Cool, I will close this one
Regards
Varun Dubey