Home › Forums › WoodMart support forum › How to add a personal avatar How to add a personal avatar This topic has 3 replies, 2 voices, and was last updated 1 day, 18 hours ago by Aizaz Imtiaz Awan. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts November 8, 2024 at 10:18 am #610663 zhufan122881Participant Hello Is it possible to add a personal avatar to the account information? This will make customer communication in the review area more interesting and lively. Thank you! Attachments:You must be logged in to view attached files. November 8, 2024 at 1:16 pm #610741 Aizaz Imtiaz AwanKeymaster Hello, Try to add the code below in the functions.php file in your child theme: function showing_custom_avatar(){ $current_user = wp_get_current_user(); echo'<div class="myaccount_custom">'.get_avatar($current_user->user_email,72,'',$current_user->display_name). '</div>'; } add_action( 'woocommerce_account_content','showing_custom_avatar',5); Best Regards November 10, 2024 at 9:43 am #611107 zhufan122881Participant Yes, the avatar is displayed, but for customers, can they edit their own avatar? Thank you ! November 11, 2024 at 11:10 am #611197 Aizaz Imtiaz AwanKeymaster Hello, The avatar displayed by this code pulls from the email-associated image, which users can change by updating the email. Best Regards Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to create new topics. Login / Register