Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to edit tabs content?

  • @whoaloic

    Participant

    Hello,
    I try to edit settings->general tabs because I would like to put in this tab the content of profile->edit tab.

    But when I put general.php in my-theme/buddypress/members/single/settings, I don’t see any changes.

    How to customize content of tabs please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @danbp

    Participant

    Seems you posted twice !
    https://buddypress.org/support/topic/where-i/

    or do you mean the Dashboard ?

    @whoaloic

    Participant

    Hello,
    actually I mean to merge content of members/single/settings/general.php and members/single/profile/edit.php.
    My idea is to get custom BP profile fields (username) along with the email and password fields in the general settings tab.
    When I copy plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/ to mytheme/buddypress/members/single/, those files don’t override plugin core files.

    @whoaloic

    Participant

    I just add that I could unset profile public tab:

    /* remove subtabs*/
    function remove_submenu_item() {
        bp_core_remove_subnav_item( 'settings', 'profile' );
    bp_core_remove_subnav_item( 'profile', 'public' );
    }
    add_action( 'bp_setup_nav', 'remove_submenu_item', 100 );
    

    But I need to change the Profile landing subnav to avoid 404 page.

    I found this piece of code but this only for main tab.

    /**
     * Change BuddyPress default Members landing tab.
     */
    define('BP_DEFAULT_COMPONENT', 'profile' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to edit tabs content?’ is closed to new replies.
Skip to toolbar