This topic has 1 reply, 1 voice, and was last updated 9 years by curlywatts.

  • Author
  • #23070
     curlywatts
    Participant

    Below is the code i have added to child theme/functions php.
    2 of the tabs show About Me and My profile.

    The other 3
    “Looking for” is Citetab…what does that mean and i would like to rename and match my groups. It also has a group already compared to My profile…why? as i have a group called that but the code did not seem to need it.??

    The other 2 relate to RT and buddy press and i perhaps as i don’t have a photo up it is not showing. Not sure. ??

    i have 5 tabs i want to show next to profile picture. When i added the same code as “My profile” to make a new one i copied and pasted, renamed to match fields but will not work….?? is that because there is a maximum number of tabs allowed?

    Hope that is clear…

    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’ => ‘About me’,
    ‘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[‘My Profile’] = array(
    ‘type’ => ‘regular’,
    ‘name’ => __(‘My Profile’, ‘kleo_framework’),
    ‘class’ => ‘regulartab’
    );
    }

    #23135
     curlywatts
    Participant

    Moved on from here ignore this post

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Help with My Tabs Please’ is closed to new replies.

Log in with your credentials

Forgot your details?