#38452
 Laura
Moderator

Hello, for the first question, you need to create custom tabs in functions.php ,because when changing that name, the code doesnt find Looking for, so it doesnt shows it. You need the custom code to create it with your own names.

For that just add this code to your functions.php in your child theme:
Please read the comments inside of the code for more explanations.

COPY CODE

//Profile tabs
 
add_action('after_setup_theme','kleo_my_custom_tabs');
function kleo_my_custom_tabs() 
{
    global $bp_tabs;
    $bp_tabs = array();
/* This is the code you need to use as a base for each profile tab, the display changes if you use 
Regular type or Cite tab, cite is a quote, bigger style for a lot of text, while regular is small
When wanting to change the style, change it at type and class , citetab , regulartab 
You can start to copy the custom code from here */
    $bp_tabs['CUSTOMGROUP'] = array(
            'type' => 'regular',
            'name' => __('CUSTOMGROUP', 'kleo_framework'),
            'group' => 'CUSTOMGROUP',
            'class' => 'regulartab'
    );
/* To here, the above code is what you need to copy and paste to make new tabs.
The order of the tabs changes as it is in the code. */
            
    $bp_tabs['Beskriv dig selv'] = array(
            'type' => 'regular',
            'name' => __('Beskriv dig selv', 'kleo_framework'),
            'group' => 'Beskriv dig selv',
            'class' => 'regulartab'
    );
    
    /* rtMedia tab - only if plugin installed */
    if (class_exists('RTMedia')) 
    {
        $bp_tabs['rtmedia'] = array(
                'type' => 'rt_media',
                'name' => __('Photos', 'kleo_framework'),
                'class' => 'mySlider'
        );
    }
 
    /* Bp-Album tab - only if plugin installed */
    elseif (function_exists('bpa_init')) {
        $bp_tabs['bp-album'] = array(
                'type' => 'bp_album',
                'name' => __('My photos', 'kleo_framework'),
                'class' => 'mySlider'
        );
    }    
    
} 

I have added the missing tab you needed, but for the rest you need to use the custom tab i added for each of them, remember both the name should be the exact name as the group in user fields.

A quick list of what i explained in the code:

1. Custom field base code (Add before } and after );

COPY CODE

$bp_tabs['CUSTOMGROUP'] = array(
            'type' => 'regular',
            'name' => __('CUSTOMGROUP', 'kleo_framework'),
            'group' => 'CUSTOMGROUP',
            'class' => 'regulartab'
    );

2. The names should be the same as the are in Users > Profile Fields ( name=> doesnt really need to be the same, but better put it.)

3. Styles, (in Attachment 1) You can easy change how the tabs will look by changing “type” and “class”:
Tab Style 1 :

COPY CODE

 $bp_tabs['CUSTOMGROUP'] = array(
            'type' => 'regular',
            'name' => __('CUSTOMGROUP', 'kleo_framework'),
            'group' => 'CUSTOMGROUP',
            'class' => 'regulartab'
    );

Tab Style 2 :

COPY CODE

$bp_tabs['CUSTOMGROUP'] = array(
            'type' => 'cite',
            'name' => __('CUSTOMGROUP', 'kleo_framework'),
            'group' => 'CUSTOMGROUP',
            'class' => 'citetab'
    );

4. Order of the tabs, it can be changed as it is in the code, if tab “Base” is up and “Style” is down, in the code, it will look like that in the website, but “Base” first, then next “Style”

___________________

As for your second question, you can translate ALL by using Codestyling Localization Plugin with Buddypress and Sweetdate

Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

Laura Solanes - Graphic Designer and Web Designer

Please be patient as I try to answer each topic as fast as i can.

If you like the theme or the support you've received please consider leaving us a review on Themeforest!

Always happy to help you 🙂

Log in with your credentials

Forgot your details?