Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @polywebjeff

    Participant

    Switching to the default aarvark theme did indead remove the error messages. I’ve switched back to the child theme, and removed mycode from bp-custom. No results. My BP templates do not contain bp_nav, but I didn’t took the time to change the file versions in the top comments. I have those custom files:

  • aarvark-child/buddypress/members/single/myorganization/edit.php
  • /**
     * BuddyPress - Members Single Profile Edit
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     * @version 3.0.0
     */
  • aarvark-child/buddypress/members/single/myorganization/profile-loop.php
  • /**
     * BuddyPress - Members Profile Loop
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     * @version 3.0.0
     */
  • aarvark-child/buddypress/members/single/myorganization/profile-wp.php
  • /**
     * BuddyPress - Members Single Profile WP
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     * @version 3.0.0
     */
  • aarvark-child/buddypress/members/single/profile/edit.php
  • /**
     * BuddyPress - Members Single Profile Edit
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     * @version 3.0.0
     */
  • aarvark-child/buddypress/members/single/home.php
  • /**
     * BuddyPress - Members Home
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
  • aarvark-child/buddypress/members/single/member-header.php
  • /**
     * BuddyPress - Users Header
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
  • aarvark-child/buddypress/members/register.php
  • no version in comments

    In my functions.php file:

    // New buddypress nav items
    
    function add_bp_menu_items() {
        global $bp;
        //Remove unwanted nav items
        bp_core_remove_nav_item( 'activity' );
        bp_core_remove_nav_item( 'forums' );
        bp_core_remove_nav_item( 'user-media' );
    //    bp_core_remove_subnav_item( 'profile', 'public' );
        unset($bp->bp_options_nav['profile']['public']);
        unset($bp->bp_options_nav['profile']['change-avatar']);
        unset($bp->bp_options_nav['profile']['change-cover-image']);
        unset($bp->bp_options_nav['settings']['profile']);
        unset($bp->bp_options_nav['settings']['data']);
    
        $bp->bp_options_nav['profile']['name'] = 'My Profile';
    }
    add_action( 'bp_setup_nav', 'add_bp_menu_items', 15 );
    
    // Change Profile menu/tab order
    function rt_change_profile_tab_order() {
        global $bp;
    
        $bp->members->nav->edit_nav( array(
            'name' => 'My Profile',
        ), 'profile' );
    
        $bp->members->nav->edit_nav( array(
            'position' => 1,
        ), 'profile' );
    
        $bp->members->nav->edit_nav( array(
            'position' => 65,
        ), 'notifications' );
    }
    add_action( 'bp_init', 'rt_change_profile_tab_order', 999 );
Viewing 1 replies (of 1 total)
Skip to toolbar