Forum Replies Created
-
In reply to: Help with Buddypress URLs
So far this is the only code I found that works but it puts it in both menus. I tested your code with “primary” and nothing happened.
// Filter wp_nav_menu() to add profile link 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><a href="' . bp_loggedin_user_domain( '/' ) . '" rel="nofollow">' . __('Visit your Awesome Profile') . '</a></li>'; $menu = $menu . $profilelink; return $menu; }In reply to: Help with Buddypress URLsI found it. “CFM_LOCATION” but it still isn’t working.
In reply to: Help with Buddypress URLsI did “Inspect Element” on the Menu page to see if I could get the code and I thought I did “cfm_floating_menu” but it still didn’t work. Is there another identifier I can try?
In reply to: Help with Buddypress URLsI actually grabbed this code from another support post:
// Filter wp_nav_menu() to add profile link 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><a href="' . bp_loggedin_user_domain( '/' ) . '" rel="nofollow">' . __('Visit your Awesome Profile') . '</a></li>'; $menu = $menu . $profilelink; return $menu; }But it adds it to both of my menus I only want it on a secondary one. It’s a floating menu. On the menu page it is labeled ” CodeFlavors floating menu ” and the menu itself I call “Floating” don’t know if that wil help with the code alteration. Also, one more thing. Is there a way to add it to the top of the menu instead of the bottom?
In reply to: Get an error when trying to change avatarAll pages work except anything profile related.
In reply to: Get an error when trying to change avatarFirefox has detected that the server is redirecting the request for this address in a way that will never complete.
In reply to: Get an error when trying to change avatarI did change domains today and thats what made everything stop working. But I also changed it in general settings. What is happening? do I need to start from scratch?
In reply to: Get an error when trying to change avataractually it happens for anything profile related
In reply to: How to hide when not logged in?Nvm found a similar guide. I also had to change the functions.php
In reply to: How to hide when not logged in?Actually Aces, when I logged out the menu didn’t show up. I created a secondary menu but with the original BP theme there is no place to designate a secondary menu.
In reply to: How to hide when not logged in?Thanks Aces!