BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Boss Theme logos
Tagged: logo
- This topic has 4 replies, 3 contibutors, and was last updated 9 years, 1 months ago by Anonymous.
Question
September 21, 2015 at 12:02 pm #46737@thehrhubHi there I have two questions:
1. Is it possible to have a different logo on the home page compared to the rest of the site (i have hidden the buddypanel)
2. When the buddy panel is collapsed the logo disappears and it is showing part of the site name – how do i fix this so a smaller logo shows?
Answers
September 21, 2015 at 3:36 pm #46750@thehrhubScratch that second question, my small logo had failed to upload
September 22, 2015 at 7:00 am #46787@
AnonymousHi @thehrhub, You can include additional conditional based logo via editing header.php inside the child theme
you can use is_front_page() or is_home() to include your logo image for homepage
logo codes are little bit complex here due to many pre existing conditions
you can get them inside header.php from line 312 to line 344<div id="mastlogo"> <!-- Look for uploaded logo --> <?php if ( get_theme_mod( 'buddyboss_logo' ) ) : ?> <div id="logo"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <img class="large" src="<?php echo esc_url( get_theme_mod( 'buddyboss_logo' ) ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> </a> <?php if ( get_theme_mod( 'buddyboss_small_logo' ) ) : ?> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> <img class="small" src="<?php echo esc_url( get_theme_mod( 'buddyboss_small_logo' ) ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> </a> <?php else: ?> <h1 class="site-title small"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> <?php bloginfo( 'name' ); ?> </a> </h1> <?php endif; ?> </div> <!-- If no logo, display site title and description --> <?php else: ?> <div class="site-name"> <h1 class="site-title"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"> <?php bloginfo( 'name' ); ?> </a> </h1> <p class="site-description"><?php bloginfo( 'description' ); ?></p> </div> <?php endif; ?> </div><!-- .mastlogo -->
for uploading please try to upload small logo 80*80 for any other larger dimension
and if failed also test to upload same image from media upload section. We are using default wp media uploader to upload itRegards
Varun DubeySeptember 22, 2015 at 1:07 pm #46827@thehrhubthanks Varun – at the risk of sounding like I am not very experienced with php – what would that look like if I wanted to simply pull a different logo in from a file I upload to the media library to show on the home page?
September 24, 2015 at 5:17 am #46989@
AnonymousHi @thehrhub , Pleae confirm that do you want to use default logo ( which comes from theme customizer) at home page or from media upload… I will customize the code according to that.
Regards
Pallavi
- The question ‘Boss Theme logos’ is closed to new replies.