-
Author
-
January 3, 2014 at 15:12 #9034mpitkaParticipant
Hi!
I have faced one problem after WP-update. It’s related to menus.
The most important menu item: “My profile” has been changed so that every user goes to “Admin’s profile”. I looked at WP-menus and there is:
that this menu item links to: http://boo.fi/members/admin/
I can’t figure out how I can change it back that it will redirect to users own profile?
January 3, 2014 at 18:01 #9041mpitkaParticipantI have tried to find that page from pages -list but it’s just not there. Own profile -link is absolutely dissapeared. What can I do?
January 3, 2014 at 21:20 #9055escortParticipantI can try to help you… Could you post a screen print?
January 3, 2014 at 21:31 #9058mpitkaParticipantI don’t know if it helps to post print screen. But here it is:
https://www.dropbox.com/s/51jije0p14pix12/screen.png
I don’t have any menu item for that (from WP menu settings). It just suddenly dissapeared 🙁
January 4, 2014 at 13:20 #9080mpitkaParticipantI searched this with Google and found a code to functions.php
COPY CODEadd_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( '/' ) . '">' . __('Own profile') . '</a></li>'; $menu = $menu . $profilelink; return $menu; }
However, this adds link just fine to end of the menu. I want it to be the first one. How to do this? 🙂
January 4, 2014 at 23:54 #9122AbeKeymasterTo have it the first one I guess you can change this line
$menu = $menu . $profilelink;
with
$menu = $profilelink . $menu;Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.