Support » Plugin: Menu Swapper » Making Menu Swapper work on BuddyPress pages

  • Hi,

    I am using Menu Swapper and love it! However, I can’t get it to work on BuddyPress pages.

    I have tried adding the following code to my child theme functions.php file but it still isn’t working.

    // =============================================================================
    // Sets Custom Menu For Buddypress Pages
    // =============================================================================
    // Replace 'is_buddypress' with any other conditional tag
    add_filter( 'wp_nav_menu_args', 'custom_buddypress_menu' );
    function custom_buddypress_menu( $args ) {
      if ( is_buddypress() ) {
        $args['theme_location'] = 'primary';
        $args['menu'] = 'Custom Menu';
      return $args;

    Any help would be great please.



  • The topic ‘Making Menu Swapper work on BuddyPress pages’ is closed to new replies.