#17115
 harryshapes
Participant

when I add the following code to my editor – functions.php it all duplcates when trying to edit.. maybe the code is wrong :s

but regardless my Base profile when I try to edit is duplicated as shown in the attached??

function.php code:

//my changes to profile tabs
add_action(‘after_setup_theme’,’kleo_my_custom_tabs’);
function kleo_my_custom_tabs()
{
global $bp_tabs;
$bp_tabs = array();

$bp_tabs[‘Profile’] = array(
‘type’ => ‘regular’,
‘name’ => __(‘My Profile’, ‘kleo_framework’),
‘group’ => ‘Profile’,
‘class’ => ‘regulartab’
);

$bp_tabs[‘Personal-Info’] = array(
‘type’ => ‘regular’,
‘name’ => __(‘Personal Info’, ‘kleo_framework’),
‘group’ => ‘Personal Info’,
‘class’ => ‘regulartab’
);

$bp_tabs[‘About-me’] = array(
‘type’ => ‘regular’,
‘name’ => __(‘About me’, ‘kleo_framework’),
‘group’ => ‘About me’,
‘class’ => ‘regulartab’
);

$bp_tabs[‘Looking-for..’] = array(
‘type’ => ‘regular’,
‘name’ => __(‘looking for..’, ‘kleo_framework’),
‘group’ => ‘Looking for..’,
‘class’ => ‘regulartab’
);

}

Log in with your credentials

Forgot your details?