This topic has 2 replies, 3 voices, and was last updated 10 years by SQadmin.

  • Author
  • #7295
     LordDax
    Participant

    I add the following code on functions.php but nothing change… what is my error?

    add_action(‘after_setup_theme’,’kleo_my_custom_tabs’);
    function kleo_my_custom_tabs()
    {
    global $bp_tabs;
    $bp_tabs = array();
    $bp_tabs[‘looking-for’] = array(
    ‘type’ => ‘cite’,
    ‘name’ => __(‘Looking for’, ‘kleo_framework’),
    ‘group’ => ‘Looking for’,
    ‘class’ => ‘citetab’
    );

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

    /* rtMedia tab – only if plugin installed */
    if (class_exists(‘RTMedia’))
    {
    $bp_tabs[‘rtmedia’] = array(
    ‘type’ => ‘rt_media’,
    ‘name’ => __(‘My work’, ‘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’
    );
    }

    $bp_tabs[‘social’] = array(
    ‘type’ => ‘regular’,
    ‘name’ => __(‘Social’, ‘kleo_framework’),
    ‘class’ => ‘regulartab’
    );
    }

    #7298
     adam
    Participant

    Does the user have fields completed under the Social tab in WP-Admin->users->profile fields? If not, the new profile tab won’t appear.

    #7335
     SQadmin
    Keymaster

    Also looking at the code you added you should have three Profile field groups: Social, Base and Looking for

    Modify the code accordingly if you have other names for the groups

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?