-
Author
-
December 22, 2013 at 02:50 #8664daniellemarieParticipant
How can I add a menu item to the profile drop down? I am looking to add a “Help” link below the Settings link. I am referring to the Profile menu next to the login button.
Thanks
December 23, 2013 at 13:44 #8714AbeKeymasterHello,
Easy job with the “header_profile_dropdown” filter. Add this to your sweetdate-child/functions.phpCOPY CODEadd_filter('header_profile_dropdown', 'my_profile_link'); function my_profile_link($links) { $links[] = '<li><a href="http://mydomain.com/help">Help</a></li>'; return $links; }
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.January 10, 2014 at 12:54 #9504danbcParticipantWill that add an indicator also Abe, like with the private message and the friends request?
January 12, 2014 at 18:15 #9582AbeKeymasterNope. You need to add your own entry. The text displayed is right in the code
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.April 23, 2014 at 00:32 #15692dojogeParticipantHi,
The above code worked great to add a Help link to the dropdown.How do I add an “Edit Profile” link? The problem is that username is in the URL. For example, the link to edit a profile for a user named “tester” is http://mydomain.com/members/tester/profile/edit/group/1/
Thanks!
April 23, 2014 at 12:51 #15718funkyParticipantHello,
i also have the same problem with the username in the URL.
I think its really complicate to find this site: /profile/edit/group/1/
Is there an option to add this link in the header for only registered members or in the drop down ?
Regards
April 25, 2014 at 00:49 #16008AbeKeymasterHi, See the example that gets the profile link automatically:
$links[] = '<li><a href="' . bp_loggedin_user_domain().'profile/edit">Edit profile</a></li>';
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.September 3, 2014 at 15:38 #27439ElectroMagneticParticipantThanks for that Abe.
Do I string it in like this?COPY CODEadd_filter('header_profile_dropdown', 'my_profile_link'); function my_profile_link($links) { $links[] = '<li><a href="http://thegiftvillage.com/help" rel="nofollow">Help</a></li>'; $links[] = '<li><a href="' . bp_loggedin_user_domain().'profile/edit">Edit profile</a></li>'; return $links; }
September 3, 2014 at 15:43 #27440ElectroMagneticParticipantSorry about the last post…grrrr had finger trouble…I meant this way
COPY CODEadd_filter('header_profile_dropdown', 'my_profile_link'); function my_profile_link($links) { $links[] = '<li><a href="http://mydomain.com/help" rel="nofollow">Help</a></li>'; $links[] = '<li><a href="' . bp_loggedin_user_domain().'profile/edit">Edit profile</a></li>'; return $links; }
September 11, 2014 at 00:26 #28299AbeKeymaster@ElectroMagnetic what do you want to achieve?
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.