Skip to:
Content
Pages
Categories
Search
Top
Bottom

How To: change navigation?


  • eVersatile
    Participant

    @eversatile

    Hello,

    I have been trying to find the file location of the profile and group navigation menus, with no luck. I would like to remove and change the name of a few links in the profile and group navigation menus. Example: I would like to change “forums” to “discuss” and remove the “members” from groups menu, etc. The menus I remove I would like to add to the side so it would still need to be functional. I am using wordpress 4.0 and buddypress 2.0.3 . I have made some other changes within wp-content/plugins/buddypress/ though I am having trouble finding where I can edit the navigation.
    Thank You in advance.

Viewing 6 replies - 1 through 6 (of 6 total)

  • Henry Wright
    Moderator

    @henrywright

    Hi @eversatile

    I have been trying to find the file location of the profile and group navigation menus, with no luck

    There isn’t a template file which you can change if that’s what you mean, but…

    I would like to change “forums” to “discuss” and remove the “members” from groups menu, etc

    You can customise slugs quite easily. See the Customizable Slugs in BuddyPress article.

    bp_core_remove_nav_item() will let you remove nav items from the navigation. There is also bp_core_remove_subnav_item() for removing sub nav items.


    eVersatile
    Participant

    @eversatile

    @henrywright
    Thank you for your reply, though I am not quite understanding.
    You linked forum mentions to insert the “define” commands into the wp-config.php file. It does ot mention where exactly to insert the settings. I played around with it though nothing happened.
    bp_core_remove_nav_item() would go where? Do I add it as a general function?


    Kir 2012
    Participant

    @kir-2012

    Hi there, I’m sorry to jump in on your post, I would like to know how to do this too – kind of.
    OP,I think this may be of some help to you.

    Admin, it may just be me being slow today, but I can’t see how to start a new thread or help request from my dash, could you pop a link here for me? Sorry about that! 🙁

    Anyone, I would like to know how to hide (not remove) only the top nav menu, with ‘profile, activity, messages, friends’ etc. I have this menu elsewhere. I want to remove it from all other places. But I need to keep the subnav links visible.

    I know how to -remove- an item nav/subnav – but want to -hide- top links without removing the actual function of the url in order that I can still link to it from my own menu.

    I can edit the css in buddypress.css, I’ve tried a few things but nothing works so far, like.

    #buddypress div.item-list-tabs {display:none};

    I’ve also tried finding the link to the menu in the home or message-header.php in buddypress/bp-templates/bp-legacy/buddypress/members/single to amend it there.

    If anyone could help I’d be so grateful, and sorry OP for riding your post, hope the link helped you. Admin if you could post me a link to start a new thread that would be great 🙂 Thank you


    Kir 2012
    Participant

    @kir-2012

    Update:
    I’m adding this: display: none; to the code:

    #buddypress div.item-list-tabs ul li {
    	float: left;
    	margin: 0;
    	list-style: none;
    

    At line 1256 on buddypress.css, it works, but hides the subnav too.
    How can i amend the code (full code below) to hide only topnav?

    #buddypress div.item-list-tabs ul li {
    	float: left;
    	margin: 0;
    	list-style: none;
            display: none;
    

    Many thanks in advance for any help people 🙂


    Kir 2012
    Participant

    @kir-2012

    Worked it out.
    For anyone wishing to know, the top menu and bottom menu are id’d as
    .item-list-tabs#object-navfor top menu and .item-list-tabs #subnav for sub nav menu.

    To hide only the top menu and keep subnav, I pasted into buddpress.css
    (/wp-content/plugins/buddypress/bp-templates/bp-legacy/css)

    #buddypress div.item-list-tabs#object-nav ul li {
    		display: none;
    }
     

    around line 1266.

    Hope that helps someone some time 🙂


    Kir 2012
    Participant

    @kir-2012

    Ah, a little too quick to be chuffed with myself – that code takes the top menu off in places I don’t want it to, like groups, I need to amend the code further to prevent that … any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How To: change navigation?’ is closed to new replies.
Skip to toolbar