BuddyBoss Home – Web Support Forums Themes Boss. theme hide member header on messages page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #50780
    @surfbuddy

    Hi all, How do I hide the member header (cover photo, etc.) when a user is on the messages page? Thanks

    Answers

    #50863

    Anonymous
    @

    Hi @surfbuddy
    You can copy boss/buddypress/members/single/member-header.php
    at same path inside the child theme
    you can add your conditional logic there for following codes

    
    <?php
    //output cover photo.
    if ( boss_get_option( 'boss_layout_style' ) != 'boxed' ) {
    	echo buddyboss_cover_photo( "user", bp_displayed_user_id() );
    }
    ?>
    

    Regards

    #50920
    @surfbuddy

    Thanks Varun. This only hides the cover photo not the entire member header. How do I hide all member header?

    #50937

    Anonymous
    @

    hiding cover image will be the only one which you can remove without an functionality break down
    BP menu and BP submenu are are required on that page
    Regards

    #51127
    @surfbuddy

    it doesnt hide the background of the cover image, just the cover image. So blank background is still there.

    #51234
    @surfbuddy

    Resolved this by wrapping item-header in buddypress/members/single/home.php

    	<?php  if ( !bp_is_messages_component() ) : ?>
    
    	<div id="item-header" role="complementary">
    
    		<?php bp_get_template_part( 'members/single/member-header' ) ?>
    
    	</div><!-- #item-header -->
    
    		<div id="item-nav">
    			<div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
    				<ul id="nav-bar-filter">
    
    					<?php bp_get_displayed_user_nav(); ?>
    
    					<?php do_action( 'bp_member_options_nav' ); ?>
    
    				</ul>
    			</div>
    		</div><!-- #item-nav -->
    	<? endif; ?>
Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘hide member header on messages page’ is closed to new replies.