Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to change profile tabs position


  • d1.psy
    Participant

    @d1psy

    Hi. I’m trying to change profile tabs position, so it should. I want it to change from this
    To something like this
    How do I do this? bp-custom.php doesn’t work for me. Still, as I understand, it would just change order of items. This was my code

    <?php
    define(‘BP_DEFAULT_COMPONENT’,’groups’);
    global $bp;
    $bp->bp_nav[‘Activity’][‘position’] = 30;
    $bp->bp_nav[‘profile’][‘position’] = 20;
    $bp->bp_nav[‘notifications’][‘position’] = 10;
    $bp->bp_nav[‘messages’][‘position’] = 80;
    $bp->bp_nav[‘friends’][‘position’] = 70;
    $bp->bp_nav[‘groups’][‘position’] = 60;
    $bp->bp_nav[‘media’][‘position’] = 50;
    $bp->bp_nav[‘settings’][‘position’] = 40;
    add_action( ‘bp_init’, ‘tricks_change_bp_tag_position’, 999 );
    add_action( ‘wp_head’, ‘tricks_change_bp_tag_position’,9 );
    ?>

    I’m, using latest BuddyPress and WordPress versions

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

  • Charla
    Participant

    @webgirl

    Try creating it as a function such as something like below or download the free plugin BuddyPress Reorder Tabs
    http://www.buddyboss.com/product/buddypress-reorder-tabs/

    
    function re_order_my_tabs() {
      global $bp;
      $bp->bp_nav[‘Activity’][‘position’] = 30;
      $bp->bp_nav[‘profile’][‘position’] = 20;
      $bp->bp_nav[‘notifications’][‘position’] = 10;
      $bp->bp_nav[‘messages’][‘position’] = 80;
      $bp->bp_nav[‘friends’][‘position’] = 70;
      $bp->bp_nav[‘groups’][‘position’] = 60;
      $bp->bp_nav[‘media’][‘position’] = 50;
      $bp->bp_nav[‘settings’][‘position’] = 40;
    }
    add_action( 'bp_setup_nav', 're_order_my_tabs', 999 );

    abhishekaustorgmailcom
    Participant

    @abhishekaustorgmailcom

    which page change

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change profile tabs position’ is closed to new replies.
Skip to toolbar