Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide or delete tab Profile ( Base)

Viewing 22 replies - 1 through 22 (of 22 total)
  • “Tab Base”

    To delete Base and all other fields groups names in user profile:
    1. find in your theme file /buddypress/members/single/profile/profile-loop.php
    2. Delete in that file: this line: <h4><?php bp_the_profile_group_name(); ?></h4>

    If you don’t have such file in your theme, than copy this file:
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php
    into your theme here:
    /wp-content/themes/[your-theme]/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php
    and remove the line that I wrote above (with h4).

    Members Directory – All Members

    1. find in your theme file /buddypress/members/index.php
    2. Delete in that file the line with this text: id="members-all"

    If you don’t have such file in your theme – do the same thing as written above but for index.php file.

    You should understand, that this will break ability to filter results on members directory page.

    OR

    You can add these styles to your theme css file:

    #members-all{display:none}
    #buddypress .profile h4{display:none}

    Hellbounds
    Participant

    @hellbounds

    I dont have BuddyPress folder in template.

    http://s10.postimg.org/9niz4ajq1/photo.jpg

    I created the file folder and put all required and not disappear!


    Hellbounds
    Participant

    @hellbounds

    i dont have budyppress in my theme only have in plugin.

    You have /members directory.
    /wp-content/themes/[your-theme]/members/single/profile/profile-loop.php
    and
    /wp-content/themes/[your-theme]/members/index.php

    Have you tried CSS solution?


    Hellbounds
    Participant

    @hellbounds

    /wp-content/themes/[your-theme]/members/index.php this work to delete id="members-all" but here /wp-content/themes/[your-theme]/members/single/profile/profile-loop.php i delete h4 text and nothing happened


    Hellbounds
    Participant

    @hellbounds

    where add this #buddypress .profile h4{display:none} style.css ? here i try but nothing

    into style.css of your theme. Also try this:
    #buddypress .profile h4{display:none !important}


    Hellbounds
    Participant

    @hellbounds

    not working ..

    /*
    Theme Name: Sweetdate (shared on themelot.net)
    Description: More than a WordPress dating theme
    Author: SeventhQueen
    Author URI: http://themeforest.net/user/SeventhQueen
    Version: 2.9.2
    Tags: dating, clean, responsive, creative, minimal, modern, landing page, social
    Text Domain: kleo_framework
    License: GNU General Public License
    License URI: license.txt
    */
    @import url("assets/styles/app.css");
    
    /*
    * DO NOT EDIT THIS FILE
    * 
    * If you want to edit/add styles you need to enable the child theme and add your custom styles there.
    */
    
    #buddypress .profile h4{display:none !important}

    Hellbounds
    Participant

    @hellbounds

    and i try to add line to the child theme but nothing happened

    What’s the content of your theme /members/single/profile/profile-loop.php file?


    Hellbounds
    Participant

    @hellbounds

    <?php do_action( 'bp_before_profile_loop_content' ); ?>
    
    <?php if ( bp_has_profile() ) : ?>
    	<ul class="accordion">
    	<?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    
    		<?php if ( bp_profile_group_has_fields() ) : ?>
    
    			<?php do_action( 'bp_before_profile_field_content' ); ?>
    
    				<li>
    				  <h5 class="accordion-title <?php bp_the_profile_group_slug(); ?>"><?php bp_the_profile_group_name(); ?><span class="accordion-icon"></span></h5>
    				  <div class="accordion-content">
    						<dl class="dl-horizontal">
    
    							<?php  while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 
    
    								<?php if ( bp_field_has_data() ) : ?>
    
    									<dt><?php bp_the_profile_field_name(); ?></dt>
    									<dd><?php bp_the_profile_field_value(); ?></dd>
    
    								<?php endif; ?>
    
    								<?php do_action( 'bp_profile_field_item' ); ?>
    
    							<?php endwhile; ?>
    						</dl>
    
    				  </div>
    				</li>
    			<?php do_action( 'bp_after_profile_field_content' ); ?>
    
    		<?php endif; ?>
    
    	<?php endwhile; ?>
    	</ul>
    	<?php do_action( 'bp_profile_field_buttons' ); ?>
    
    <?php endif; ?>
    
    <?php do_action( 'bp_after_profile_loop_content' ); ?>

    Try
    #buddypress .profile h5{display:none !important}


    Hellbounds
    Participant

    @hellbounds

    not working..

    What’s the content of your theme /members/single/profile.php file?


    Hellbounds
    Participant

    @hellbounds

    <?php
    
    /**
     * BuddyPress - Users Profile
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php if ( bp_is_my_profile() ) : ?>
    
    	<div class="item-list-tabs no-ajax" id="subnav" role="navigation">
    		<ul>
    
                <?php bp_get_options_nav(); ?>
    
    		</ul>
    	</div><!-- .item-list-tabs -->
    
    <?php endif; ?>
    
    <?php do_action( 'bp_before_profile_content' ); ?>
    
    <div class="profile">
    
    	<?php switch ( bp_current_action() ) :
    
    		// Edit
    		case 'edit'   :
    			bp_get_template_part( 'members/single/profile/edit' );
    			break;
    
    		// Change Avatar
    		case 'change-avatar' :
    			bp_get_template_part( 'members/single/profile/change-avatar' );
    			break;
    
    		// Change Cover Image
    		case 'change-cover-image' :
    			bp_get_template_part( 'members/single/profile/change-cover-image' );
    			break;
    
    		// Compose
    		case 'public' :
    
    			// Display XProfile
    			if ( bp_is_active( 'xprofile' ) )
    				bp_get_template_part( 'members/single/profile/profile-loop' );
    
    			// Display WordPress profile (fallback)
    			else
    				bp_get_template_part( 'members/single/profile/profile-wp' );
    
    			break;
    
    		// Any other
    		default :
    			bp_get_template_part( 'members/single/plugins' );
    			break;
    	endswitch; ?>
    
    </div><!-- .profile -->
    
    <?php do_action( 'bp_after_profile_content' ); ?>

    My css code should work. Perhaps you placed it in a wrong place.

    Try removing this line <h5 class="accordion-title <?php bp_the_profile_group_slug(); ?>"><?php bp_the_profile_group_name(); ?><span class="accordion-icon"></span></h5> from profile-loop.php file.


    Hellbounds
    Participant

    @hellbounds

    i remove but nothing ! stil here


    Hellbounds
    Participant

    @hellbounds

    you have team view ?

    Don’t know what’s going on on your install.
    I have teamviewer, but I don’t have time to investigate your problem further.


    Hellbounds
    Participant

    @hellbounds

    please 10 min..


    Hellbounds
    Participant

    @hellbounds

    I have a request! When you have time you can look over my problem? Thank you very much

Viewing 22 replies - 1 through 22 (of 22 total)
  • The topic ‘Hide or delete tab Profile ( Base)’ is closed to new replies.
Skip to toolbar