#42506
 veggist
Participant

I have tried using this now, in my puctions.php in child theme, using the frase “DIETT” insted of “CUSTOMGROUP”, but I got no option for “DIETT” in my form.
Here´s what in my functions.php now:
<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*/

/**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*/
add_action( ‘admin_init’, ‘redirect_non_admin_users’ );
/**
* Redirect non-admin users to home page
*
* This function is attached to the ‘admin_init’ action hook.
*/
function redirect_non_admin_users() {
if ( ! current_user_can( ‘manage_options’ ) && ‘/wp-admin/admin-ajax.php’ != $_SERVER[‘PHP_SELF’] ) {
wp_redirect( home_url() );
exit;
}
}
//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[‘DITETT’] = array(
‘type’ => ‘regular’,
‘name’ => __(‘DITETT’, ‘kleo_framework’),
‘group’ => ‘DIETT’,
‘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. */

/* 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’
);
}

}
?>
And I attached a screenshot of my Buddypress settings page to show how it is now.
What am I doing wrong?

Attachments:

Log in with your credentials

Forgot your details?