Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Icon is missing when BP Better Message is activated

This topic is resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Surrealer
    Participant
    • 16 Topics
    • 47 Posts
    @surrealer

    Hello,
    there is the message icon missing when BP Better Message is activated.
    (see screenshots)

    Do you have a hotfix for me and can correct it in your next update?

    Kind regards
    Surrealer

    Jason
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 426 Posts
    @themoceratops

    Hi @surrealer,

    Thank you for your feedback, this is indeed an issue within Gwangi. The fix for that will be included in our next release.

    Meanwhile, here is a PHP code snippet that you can use as a hotfix:

    if ( ! function_exists( 'gwangi_buddypress_get_displayed_user_secondary_nav' ) ) :
    	/**
    	 * Display a secondary nav on member profiles containing the "notifications", "messages" and "settings" icons
    	 *
    	 * @since 1.0.0
    	 */
    	function gwangi_buddypress_get_displayed_user_secondary_nav() {
    		$bp = buddypress();
    
    		foreach ( $bp->members->nav->get_primary() as $user_nav_item ) {
    			$items_to_display = array(
    				'notifications',
    				'messages',
    				'bp_better_messages_tab',
    				'settings',
    			);
    			if ( ! in_array( $user_nav_item->css_id, $items_to_display ) ) {
    				continue;
    			}
    			if ( empty( $user_nav_item->show_for_displayed_user ) && ! bp_is_my_profile() ) {
    				continue;
    			}
    
    			$selected = '';
    			if ( bp_is_current_component( $user_nav_item->slug ) ) {
    				$selected = ' class="current selected"';
    			}
    
    			if ( bp_loggedin_user_domain() ) {
    				$link = str_replace( bp_loggedin_user_domain(), bp_displayed_user_domain(), $user_nav_item->link );
    			} else {
    				$link = trailingslashit( bp_displayed_user_domain() . $user_nav_item->link );
    			}
    
    			/**
    			 * Filters the navigation markup for the displayed user.
    			 *
    			 * This is a dynamic filter that is dependent on the navigation tab component being rendered.
    			 *
    			 * @since 1.1.0
    			 *
    			 * @param string $value         Markup for the tab list item including link.
    			 * @param array  $user_nav_item Array holding parts used to construct tab list item.
    			 *                              Passed by reference.
    			 */
    			echo apply_filters_ref_array( 'bp_get_displayed_user_nav_' . $user_nav_item->css_id, array( '<li id="' . $user_nav_item->css_id . '-personal-li" ' . $selected . '><a id="user-' . $user_nav_item->css_id . '" href="' . $link . '">' . $user_nav_item->name . '</a></li>', &$user_nav_item ) );
    		}
    	}
    endif;

    To add a PHP code snippet to your site, we recommend that you use the Code Snippet plugin. For more info, please visit this article of our documentation:

    Adding Custom PHP Without Changing Your Child Theme

    Best regards,

    Surrealer
    Participant
    • 16 Topics
    • 47 Posts
    @surrealer

    thank you @themoceratops for the fast hotfix. Works like a charm

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    You’re welcome. ?

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Icon is missing when BP Better Message is activated’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site