Business-to-business toolkit

Showing organisation logos in the Buddyboss theme

Organisation logo not showing in Buddyboss theme?

The Buddyboss theme tries to influence the logo used in your site and is therefore trying to do the same thing as the Business-to-business toolkit. Themes always tend to win over plugins in circumstances like this, but there are a few changes that can be made to make sure your theme shows the organisation logo.

To make this work, you will need to have a Buddypress child theme in place. If you don’t already have one of these please visit this page for more information about child themes.

Once you have a child theme in place, please complete the following steps:

1. If you haven’t got one already, create a folder inside your child theme called ‘template-parts’.

2. Copy the file site-logo.php from the ‘template-parts’ folder in the Buddyboss theme into the ‘template-parts’ folder of your child theme.

3. Edit the file you have copied over and after the line that looks like:

$logo_dark_id = buddyboss_theme_get_option( ‘logo_dark’, ‘id’ );

and before the line that looks like:

$logo  = ( $show && $logo_id ) ? wp_get_attachment_image( $logo_id, ‘full’, ”, array( ‘class’ => ‘bb-logo’ ) ) : get_bloginfo( ‘name’ );

You can add the following code, which calls a function from the Business-to-business toolkit and overrides the Buddyboss defined logo if necessary:


This will replace the logo on your site’s general theme.

4. To replace it on the LearnDash Focus Mode theme you need to add the following function to your child theme’s functions.php file:

This ‘buddyboss_is_learndash_brand_logo’ function exists within the Buddyboss theme, but we are defining a customised version of it to your child theme first before Buddyboss gets a chance to define it. Within the Buddyboss theme, the function is wrapped within a ! function_exists(), so there shouldn’t be any conflict issues here and your child theme function should take precedence.

Once both of these are in place, you should find that users from specific organisations see the relevant logo.

If you continue to experience any issues displaying organisation logos within your theme, please feel free to get in touch.