Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress profile menu items not rearranged with bp-custom.php


  • deklein
    Participant

    @deklein

    I am trying to rearrange the buddypress profile menu items with the bp-custom.php file located in WP-Admin > WP-Content > plugins.
    The following code I have is as follows:

    <?php
    // hacks and mods will go here
    
    function mb_profile_menu_tabs(){
    global $bp;
    $bp->bp_nav['media']['position'] = 10;
    $bp->bp_nav['activity']['position'] = 15;
    $bp->bp_nav['forums']['position'] = 15;
    $bp->bp_nav['profile']['position'] = 25;
    $bp->bp_nav['messages']['position'] = 30;
    $bp->bp_nav['notifications']['position'] = 40;
    $bp->bp_nav['friends']['position'] = 50;
    $bp->bp_nav['groups']['position'] = 60;
    $bp->bp_nav['orders']['position'] = 70;
    $bp->bp_nav['profile']['name'] = 'Account';
    $bp->bp_nav['forums']['name'] = 'Collections';
    }
    add_action('bp_setup_nav', 'mb_profile_menu_tabs', 201);
    
    ?>
    

    When I save the file and then refresh my profile page the items are not rearranged or renamed. Am I missing any steps or do i need to copy this document and paste it elsewhere inside other .php files?
    Any suggestions will be helpful! (:

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

  • danbp
    Participant

    @danbp

    Please use code button to publish code !

    Your code is correctly working on 2012 theme…
    The file must be in wp-content/plugins/bp-custom.php, not in wp-admin.


    deklein
    Participant

    @deklein

    Thanks for the reply!! Well hey I actually had the file in the right place WP-content buuuut the real issue was my browser cache I found out. Silly me it was just Chrome saying “hey i want to make your frusterated right meow”

    Anyway I have an issue still that someone might be able to help me with. Everything updated fine except the orders button is not affected (it still comes third in line behind forums). Since I havent got to the point where I plan to sell things on my site yet anyway can i just remove the orders button cause its being stubborn.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BuddyPress profile menu items not rearranged with bp-custom.php’ is closed to new replies.
Skip to toolbar