• Hi,

    I’m using Simple Local Avatars to enable user to upload their own picture.
    Everything looks ok with the following code which returns IMG tag for my avatar when i run it on my test environment.

    <div class="avatar_image"><?php echo get_avatar($user->ID, 136); ?></div>

    However, when i copied everything to the production environment, avatar is not showing up, and the reason was because the URL stated in the IMG tag starts from https://test-environment-url/~~

    Is there any way where i can customize it so that the src part begins with direct path?

    Eg)
    <img src="/wp-content/uploads/****">

    Is the avatar value stored in database as whole URL?

    Thank you.

  • The topic ‘[Simple Loval Avatars] Customize the url returned’ is closed to new replies.