This topic has 6 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #113428
     Candrom
    Participant

    Hey,

    I did add several items to the user menu (located top right). I did modify the order of all items in functions.php file, but unfortunately the custom order is only working on buddypress pages! On all other pages the order is not as defined in functions.php, furthermore there is a whitespace appearing between items.

    Please have a look!

    #113596
     Radu
    Moderator

    Hi,

    Just go to wp-admin -> appearance -> menus -> add your desired items for user menu from the top right then assign this location to the menu Top Right Header Menu

    Cheers

    Radu

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

    But how am I supposed to change the order of items that are added through plugins? such as rtmedia or mycred?

    #113642
     Radu
    Moderator

    Hi,

    Follow this video : https://drive.google.com/file/d/0Bxo5b6iHWRMwSUQ3ZGIxQ21GWFE/view

    Cheers

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

    I’m not sure if you understand what I mean.. or maybe it’s me that is not understanding something here..
    ome menu items, like rtmedia “Media” menu-item, is not present on this page.
    Theres also menu items that can be added through plugins like myCred. According to BuddyPress docs, you can change this order using the following code:

    COPY CODE
    function my_change_profile_tab_order() {
        global $bp;
        $bp->bp_nav['settings']['position'] = 10;
        $bp->bp_nav['activity']['position'] = 20;
        $bp->bp_nav['friends']['position'] = 30;
        $bp->bp_nav['groups']['position'] = 40;
        $bp->bp_nav['blogs']['position'] = 50;
        $bp->bp_nav['messages']['position'] = 60;
        $bp->bp_nav['profile']['position'] = 70;
    }
    add_action( 'bp_setup_nav', 'my_change_profile_tab_order', 999 );

    This works fine, it does change the order in the user menu and tab menu, but only on buddypress pages! Other pages do show the default order and included blankspaces.

    #113687
     Candrom
    Participant

    correction: on the code above, I had to use the action ‘init’ not ‘bp_setup_sav’ to make it work. But it still only works on buddypress pages not on all pages.

    #113826
     Radu
    Moderator

    Hi,

    Please look at this video : https://drive.google.com/file/d/0Bxo5b6iHWRMwQkxrYUotV0Ziem8/view

    Follow this method is more reliable and simple.

    You will have to add this ##profile_link## in URL field and this will generate profile url for logged in user, then you will have to know only slug for the component.

    Cheers

    Radu

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?