User right above


#1

hi, one can integrate from the top right in the left menu (see picture)?


#2

Hello,

Yes you can customize it, add following lines of code in your Child Themes functions.php

function rtp_userdata_box() { ?>
    <div class="rtp-current-user-details rtp-profile-avatar clearfix">
        <?php
        global $current_user;
        $current_user_id = get_current_user_id(); ?>
        
        <a class="rtp-current-user-avatar" href="<?php echo bp_loggedin_user_domain(); ?>" title="<?php echo esc_attr( $current_user->user_nicename ); ?>">
        
        <?php echo get_avatar( $current_user_id, 32 ); ?>
        <span class="rtp-user-name"><?php echo esc_html( $current_user->display_name ); ?></span>
    </a>

    <?php rtp_current_user_links(); ?>

    </div><?php
}

add_action( 'rtp_hook_end_slide_panel', 'rtp_userdata_box' );

You need to style it.

Thanks


#3