Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Add Tab To Members profile #14329
     ahmadfaiz11
    Participant

    Sorry sir, I think you misunderstanding what my problem… Please read carefully on my problem…

    Ok, I got this path /public_html/wp-content/themes/sweetdate-child/functions.php

    But the code is like this….

    COPY CODE
    <?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
    */ 
    
    ?>

    The instruction say, the code like this,

    COPY CODE
    //my changes to 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'
    		);
    	}
    	
    	$bp_tabs['social'] = array(
    			'type' => 'regular',
    			'name' => __('Social', 'kleo_framework'),
    			'class' => 'regulartab'
    	);
    }

    So, I did not see that code….That why I ask you……. Seriously…I did not see the right code on the path /public_html/wp-content/themes/sweetdate-child/functions.php …

    Sorry sir… I really need your help… 🙁

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?