This question already has an answer here:

I'm looking for custom code to remove fields on user profile like you see in the pictures : remove what is in red color I would also like to replace Gravatar images with simple photos from the media library:

remove what is in red color

marked as duplicate by Dave Romsey, Community Jul 3 '17 at 13:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Part 1

Create wpse_admin_user.css file and put it in your current theme, where style.css is:

tr.user-admin-bar-front-wrap {
    display: none;

Add this code to your theme's functions.php:

function wpse_user_admin_script() {
    wp_register_style( 'wpse_admin_user_css', get_stylesheet_directory_uri() . '/wpse_admin_user.css' );
    wp_enqueue_style( 'wpse_admin_user_css' );  
add_action( 'admin_enqueue_scripts', 'wpse_user_admin_script' );

Part 2

Install and activate Custom User Profile Photo plugin. You will be able to use pictures from media library.

Not the answer you're looking for? Browse other questions tagged or ask your own question.