Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Changing default vendor avatar
- This topic has 5 replies, 3 voices, and was last updated 4 years, 9 months ago by ashley.younguk.
- AuthorPosts
- February 15, 2020 at 9:31 pm #107298ashley.youngukParticipant
Hello,
I would like to change the two default vendor avatars – the one in the top right corner (the profile icon) and the one in the welcome box. If I override the images in the plugin folder it reverts back when I update the plugin. Is there a way of changing this?
Thank you
- February 19, 2020 at 3:10 pm #107823WCFM ForumMember
Hi,
Please know me image urls which you want to use for the purpose.
I will give you code for this.
Thank You
- February 19, 2020 at 11:49 pm #107919ashley.youngukParticipant
Hi
So it’s this one: wp-content/plugins/wc-frontend-manager/assets/images/user.png
and this one: wp-content/plugins/wc-frontend-manager/assets/images/avatar.png
Thank you 🙂
- February 19, 2020 at 11:56 pm #107921ashley.youngukParticipant
I would like to change those URLs to images I upload to the wordpress media folders.
- February 20, 2020 at 1:17 pm #107997Sarmistha ChakrabortyMember
Hi,
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/add_filter('wcfm_defaut_user_avatar',function($img_url){ $img_url = 'http://localhost/wordpress/wp-content/uploads/2019/05/1.jpg'; //image url which you upload to the wordpress media folder return $img_url; },20);
Thanks.
- February 21, 2020 at 4:56 pm #108209ashley.youngukParticipant
Amazing – worked perfectly 🙂
- AuthorPosts
- The topic ‘Changing default vendor avatar’ is closed to new replies.