-
Author
-
November 19, 2016 at 09:02 #144771
jwchameleoncorp
ParticipantHello,
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!
November 19, 2016 at 12:12 #144785Laura
ModeratorHello, 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 solutionLaura 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 🙂
November 19, 2016 at 17:06 #144812jwchameleoncorp
ParticipantHi @laura
Yep, I received an error. It displayed in the top of the page.
November 20, 2016 at 02:59 #144831jwchameleoncorp
ParticipantHi @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 CODEadd_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!!!
November 22, 2016 at 12:37 #145002Laura
ModeratorHello, try with
COPY CODEadd_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 solutionLaura 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 🙂
November 22, 2016 at 19:22 #145028jwchameleoncorp
ParticipantHi @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!!! 🙂
November 24, 2016 at 11:41 #145193Laura
ModeratorHello, 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 solutionLaura 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 🙂
-
AuthorPosts
You must be logged in to reply to this topic.