How to add custom avatar upload field in WordPress
How to add custom avatar upload field in WordPress February 24, 2025 iamprazol 1:49 pm In WordPress uploading a user avatar is not directly provided. It has the default way of extracting gravatar images which is set as user avatar. This is okay if the user has a gravatar account and has uploaded his avatar there but issue occurs when the user does not have an gravatar account. I.e his avatar is not set. To overcome this issue and make users able to upload an avatar or profile picture directly from their computer, the User Avatar plugin has been created. How to install Advance User Avatar First of all download the zip file from codecanyon. Extract it, you will find two files, one is the User Guide and another is the zip file for this plugin. Now go to your WordPress site and Click on Plugins -> Add new. A File uploader interface will open and select the downloaded zip file. Install and Activate the plugin. How to use the plugin features To use the plugin feature you will have to go to Users -> User Avatar menu. In above image you will see four options are given in the settings Max Avatar Size Allowed This option will make sure that only the image upto the inputted value is allowed. For eg, if 20 is set here, the profile picture field will accept only the files upto 20KB in size. If users tries to upload a file more than the defined amount then he will be shown a file size exceeded error message. Allowed file Type: This option allows user to select from two options in free i.e JPG, JPEG and further two options in PRO GIF and PNG and will validate the uploaded image according these file type selected in this option. For eg, if GIF is selected here then the field will accept only GIF images. If user tries to upload images of other file types then he will be shown a Invalid file type message Capture Picture This option when enabled allows the user uploading the profile picture to be able to use his webcam to capture images instantly. Note: This feature will require your site to be secure and SSL verified. Cropping interface This option when enabled allows the user uploading the profile picture to be able to crop the uploaded or captured picture to his desired area. With the plugin you can add a custom user avatar uploader field.. It has additional features such as uploader, webcam capture, cropper etc. That’s all I have to say. Hope this helps! Leave a Reply Cancel reply Logged in as iamprazol. Edit your profile. Log out? Required fields are marked * Message*