Viewing 6 replies - 1 through 6 (of 6 total)
  • You can put this code in the functions.php file of your theme:

    if(class_exists('wp_user_avatar')){
      remove_action('show_user_profile', array('wp_user_avatar', 'wpua_action_show_user_profile'));
      add_action('profile_personal_options', array('wp_user_avatar', 'wpua_action_show_user_profile'));
    }

    What this will do is remove the Avatar section from the bottom of your own profile and move it before the Name section. When you’re viewing other profiles as an admin, you’ll still see the Avatar section at the bottom.

    Thread Starter dface

    (@dface)

    Unfortunately, it moves above “Extended Profile” section ??

    Screenshot: https://i.imgur.com/JVzhqYq.png

    What plugin are you using for the profile?

    Thread Starter dface

    (@dface)

    I’m not using plugins, it’s classipress default profile view and there are no settings for disabling “Extended Profile” section.

    You’ll have to edit your profile template then, as it probably is not set-up in the same way as a standard WordPress profile. Look for a line of code in your theme that has something like this:

    <?php do_action('profile_personal_options', $profileuser); ?>

    and cut and paste that to the spot where you’d like to use it.

    Thread Starter dface

    (@dface)

    Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Avatar in top of the Profile page’ is closed to new replies.