This topic has 13 replies, 2 voices, and was last updated 9 years by broadsword.

  • Author
  • #60853
     broadsword
    Participant

    This 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?

    #60904
     sharmstr
    Moderator

    You’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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #60925
     broadsword
    Participant

    Ok, @sharmstr, will try that. Thanks!

    #60941
     broadsword
    Participant

    Boy, 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! 🙂

    #60944
     sharmstr
    Moderator

    bp_is_user

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

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #60945
     broadsword
    Participant

    Ok, @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?

    #60962
     sharmstr
    Moderator

    Please 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #61073
     broadsword
    Participant

    Right, 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…

    #61082
     sharmstr
    Moderator

    You’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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #61083
     sharmstr
    Moderator

    Even 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #61207
     broadsword
    Participant

    Nice!

    #61210
     broadsword
    Participant

    Drat – I’m not seeing any radio buttons in there (screen shot attached). I do see the ‘visibility’ field though.

    Am I lookin’ in the right place, @sharmstr ?

    Attachments:
    You must be logged in to view attached files.
    #61212
     sharmstr
    Moderator

    arrrg. 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #61298
     broadsword
    Participant

    No worries, we’ll totally get that installed 🙂

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?