This topic has 6 replies, 2 voices, and was last updated 7 years by Laura.

  • Author
  • #144771
     jwchameleoncorp
    Participant

    Hello,

    Is there a way to add links in the Profile Menu Drop Down?

    Already tried this topic: https://archived.seventhqueen.com/forums/topic/add-menu-item-to-the-profile-drop-down-menu

    But had no luck.

    Thanks!

    #144785
     Laura
    Moderator

    Hello, after doing that, what happened? It just didnt work or did you see any kind of error?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #144812
     jwchameleoncorp
    Participant

    Hi @laura

    Yep, I received an error. It displayed in the top of the page.

    #144831
     jwchameleoncorp
    Participant

    Hi @laura

    I figured out what I did wrong. Tried it again, and got it right. 🙂

    However, how do I specify a link in the menu that is specific to the user? For example, how do I specify a link that directs the user to his/her forums, instead of all forums?

    Right now I have this code in my functions.php child theme file:

    COPY CODE
    add_filter('header_profile_dropdown', 'my_profile_link');
    function my_profile_link($links) {
    	$links[] = '<li><a href="http://matchingglove.com/forums" rel="nofollow">Forums</a></li>';
    	return $links;
    }

    As you can see, the code is for all forums. I want to place links in the Profile Menu Drop down that are specific to the user’s profile. Example of a link destination would be: http://www.matchingglove.com/members/user/groups/

    How do I do that for all the links I place there?

    Thanks for your help!!!

    #145002
     Laura
    Moderator

    Hello, try with

    COPY CODE
    
    add_filter('header_profile_dropdown', 'my_profile_link');
    function my_profile_link($links) {
    	$links[] = '<li><a>user_login . '/groups/'; ?>">Groups</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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #145028
     jwchameleoncorp
    Participant

    Hi @laura

    Okay, I added your code, but I don’t see a way to add user profile specific links (i.e. My Forums, Notifications, My Orders, etc.)

    How do I add links like that which are specific to the users account?

    Thanks for the help!!! 🙂

    #145193
     Laura
    Moderator

    Hello, check https://buddypress.org/support/topic/dynamic-urls-for-buddypress-user-profiles-friends-etc/ 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?