Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trouble changing default settings tab


  • learntodesign
    Participant

    @learntodesign

    Hello all,

    I have an additional subnav under settings that I created with the slug “accountdetails”

    I am trying to change the default nav from general to this with no luck. I have tried adding the code below to both bp-functions and functions.php. Neither has worked. Is there anything that I’m missing?

    function change_settings_subnav() {
    
    $bp = buddypress();
    
      $args = array(
      'parent_slug' => $bp->settings->slug,
      'subnav_slug' => $bp->settings->slug . '/accountdetails/'
      );
     
    bp_core_new_nav_default($args);
    }
    add_action('bp_setup_nav', 'change_settings_subnav', 5);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar