This topic has 13 replies, 2 voices, and was last updated 9 years by broadsword.
-
Author
-
June 3, 2015 at 06:34 #60853
broadsword
ParticipantThis seems like a silly question, but we have no idea how to change the default top menu for buddypress profile pages.
As is, it’s displaying the ‘Main’ menu (which for us is specific to logged out people), and we need it to display what we’ve assigned to the ‘top’ menu.
Any ideas where we’d want to set that?
June 3, 2015 at 17:31 #60904sharmstr
ModeratorYou’ll need a plugin. Several of us use Menu Item Visibility control.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 3, 2015 at 20:55 #60941broadsword
ParticipantBoy, oh, boy; symbolic notation and custom logic are a little daunting to me @sharmstr – I get that we can do something like:
! is_user_logged_in()
To hide a menu from someone who’s not logged in, but for the life of me I can’t understand how to make a specific menu appear just on buddypress pages! Help! 🙂
June 3, 2015 at 21:28 #60944sharmstr
Moderatorbp_is_user
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 3, 2015 at 21:33 #60945broadsword
ParticipantOk, @sharmstr – just to be clear, we’d do something like:
! bp_is_user()
to HIDE a menu from a buddypress user, and
bp_is_user()
to SHOW it to someone who is a buddypress user, correct?
June 4, 2015 at 00:52 #60962sharmstr
ModeratorPlease read the buddypress codex: https://codex.buddypress.org/developer/template-tag-reference/
bp_is_user()
Used to determine if the current page is a user page.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 4, 2015 at 23:19 #61073broadsword
ParticipantRight, but we’d be applying this to the ‘visibility’ field in each menu. So, @sharmstr , what would we want to include in that field if we wanted to display it to bp users only?
You’ll forgive me, I’m far from being an expert with procedural logic…
June 5, 2015 at 00:21 #61082sharmstr
ModeratorYou’ve asked for 2 different things. First you asked that it only show on profile pages. Now you’re asking that it only show to bp users. If you have buddypress enabled, anyone who is logged in is a buddypress member. So using the is_user_logged_in will automatically solve the “is bp user” you’re now asking for.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 5, 2015 at 00:24 #61083sharmstr
ModeratorEven simpler than that, you can use the “Logged in users” radio button.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 5, 2015 at 22:13 #61210broadsword
ParticipantJune 5, 2015 at 22:17 #61212sharmstr
Moderatorarrrg. Sorry, on my test site I have another plugin installed called Nav Menu Roles https://wordpress.org/plugins/nav-menu-roles/
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
June 6, 2015 at 04:41 #61298broadsword
ParticipantNo worries, we’ll totally get that installed 🙂
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.