This topic has 9 replies, 6 voices, and was last updated 10 years by Abe.

  • Author
  • #8664
     daniellemarie
    Participant

    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

    #8714
     Abe
    Keymaster

    Hello,
    Easy job with the “header_profile_dropdown” filter. Add this to your sweetdate-child/functions.php

    COPY CODE
    
    add_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.

    #9504
     danbc
    Participant

    Will that add an indicator also Abe, like with the private message and the friends request?

    #9582
     Abe
    Keymaster

    Nope. 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.

    #15692
     dojoge
    Participant

    Hi,
    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!

    #15718
     funky
    Participant

    Hello,

    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

    #16008
     Abe
    Keymaster

    Hi, 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.

    #27439
     ElectroMagnetic
    Participant

    Thanks for that Abe.
    Do I string it in like this?

    COPY CODE
    
    add_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;
    }
    
    #27440
     ElectroMagnetic
    Participant

    Sorry about the last post…grrrr had finger trouble…I meant this way

    COPY CODE
    
    add_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;
    }
    
    #28299
     Abe
    Keymaster

    @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.

Viewing 10 posts - 1 through 10 (of 10 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?