• Resolved WP-hamilton

    (@wp-hamilton)


    Hi everyone,

    I have not found any support for my new avatar url issue.

    On my site post users can comment and they have an avatar (no url). How is it possible for anyone to click on any avatar and go to a custom url.

    Something like:

    $user comment => set_avatar_url= ‘https://www.www.remarpro.com’;

    Any replies will help. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    How comment avatars are handled are theme dependent, but themes using the usual WP functions cannot accommodate a parameter like you are hoping. There’s several opportunities to alter comment output to do what you want, but again, they are theme dependent.

    One approach that should work as long as the theme uses get_avatar() is to filter ‘get_avatar()’ and wrap the passed img tag with an appropriate link. You can get the comment author’s website URL with get_comment_author_url() if that is the link you were thinking of.

    Thread Starter WP-hamilton

    (@wp-hamilton)

    Thank you bcworkz.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Avatar doesn't have a link’ is closed to new replies.