Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • AilyRoot
    Participant

    @ailyroot

    Hello

    thanks for this, but I am not looking for customize that tool bar, we want to move that part to somewhere else on to theme though


    AilyRoot
    Participant

    @ailyroot

    many thanks for this!

    We now want to remove WP top toolbar (not the question here), we then want to ask how to move this whole part to a bit under, so information could join together

    is this possible?

    that area has “notifications”+ “member name”+ “search” + “drop out menu


    AilyRoot
    Participant

    @ailyroot

    Hi guys
    we are looking for solution to get buddypress notifications work on our theme, we know it will be shown on wordpress’s default top tool bar but we want it to show somewhere else.

    We are using WP 4.3 with buddypress 2.3.3, we have added these to theme’s functions.php

    
    function bpfr_add_notification_to_page_title( $title, $original_title, $sep  ) {
    	
    	//do not change if the user is not logged in
    	if( ! is_user_logged_in() )
    		return $title;
    	
    	$user_id = get_current_user_id();//logged in user's id
    	
    	$count = bp_notifications_get_unread_notification_count( $user_id );
    	
    	if( $count > 0 )
    		$title = sprintf( "You Have %d New Notification(s) - ", $count );
    	
    	return $title;
    	
    	
    }
    add_filter( 'wp_title', 'bpfr_add_notification_to_page_title', 100, 3 );
    

    then we add these to theme ‘s menu location

    
    <?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?>
    

    but it is showing nothing, what is the correct steps to make this work please?

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar