Meta Box
Support › MB User Avatar › Custom Avatar Tutorial
I have been following this tutorial: https://metabox.io/create-custom-avatar/
I am using Oxygen Builder and the part where you insert the code in the function.php I used Advance Scripts and also tried Code Snippets.
The uploaded Avatar photo will not replace the WordPress default picture.
What am i doing wrong?
Sheldon
Hi Sheldon,
If you use the component Author Avatar of Oxygen Builder to show the custom avatar, please refer to this topic to use another code to show the custom avatar in Oxygen. https://support.metabox.io/topic/metabox-user-avatar-not-working-with-elementor-author-widget/
And change the field ID to custom_avatar
custom_avatar
$custom_avatar = rwmb_meta( 'custom_avatar', [ 'object_type' => 'user' ], $user_id );