This topic has 0 replies, 1 voice, and was last updated 10 years by Abe.

  • Author
  • #9472
     Abe
    Keymaster

    Please add this code to sweetdate-child/functions.php to customize those tabs so they appear fine in multilingual

    COPY CODE
    
    //customize profile tabs
    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'
            );
        }
    }
    

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 1 post (of 1 total)

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

Log in with your credentials

Forgot your details?