• Resolved nyper

    (@nyper)


    hi
    i have a many user in my website as customer and i have 1 admin account.
    i use “WP First Letter Avatar” plugin for my users avatar
    now i want change only my admin account avatar to a jpg picture.
    i prefer not using any plugin.

    is any solution?
    tnx

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator threadi

    (@threadi)

    If you’re only concerned with your own profile, you could register at https://gravatar.com (yes, that will run through wordpress.com, don’t be surprised). Use the same email address as your admin account uses and put the image you want there. After that it will be used by your wordpress wherever a profile picture should be displayed.

    This will work as long as you don’t use a plugin that disables Gravatars.

    One more hint: the plugin you used “WP First Letter Avatar” is extremely old. Unfortunately I can’t judge how compatible it is with Gravatar images. Normally I would advise to ask their support, but I don’t think it exists anymore. Maybe you should look for an alternative.

    Thread Starter nyper

    (@nyper)

    Is any snippet code for set custom profile picture for my admin account?
    For example: if username is (admin) then set a custom url as avatar

    Moderator threadi

    (@threadi)

    You could try one of these:
    https://gist.github.com/nfsarmento/c96a95a8cc5154398d773090b9ea9909#file-functions-php
    https://gist.github.com/spigotdesign/4716763

    This adds a meta field to the user that contains the link to the image. How you then display this in the frontend of your site depends on your theme and also requires individual programming there.

    Thread Starter nyper

    (@nyper)

    tnx

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

The topic ‘set custom avatar only for 1 user’ is closed to new replies.