Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum   wpForo Support Forum

[Solved] User avatars in comments  

  RSS

Mariia Smolina
(@mariia-smolina)
Member Customer
Joined: 4 weeks ago
Posts: 6
22/05/2020 5:53 am  

Hello! I am using "WP User Avatar" on my site. To display the avatar in the comments, they recommend using the function:

Comments
For comments, you might have in your template:

<? php echo get_avatar ($comment, 32); ?>
Replace this function with:

<? php echo get_wp_user_avatar ($comment, 32); ?>
For comments, you must specify the $comment variable.

How do I change the class.WpdiscuzWalker.php code to replace the avatar output function? Tnx!


Quote
Topic Tags
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 4129
23/05/2020 12:04 pm  

@mariia-smolina,

Just find the get_avatar function in the class.WpdiscuzWalker.php file and replace it with the code provided by the plugin support. 

Customization doc can be found here: https://wpdiscuz.com/docs/wpdiscuz-documentation/customization/custom-template-and-style/


ReplyQuote
Mariia Smolina
(@mariia-smolina)
Member Customer
Joined: 4 weeks ago
Posts: 6
23/05/2020 8:09 pm  

Yes it worked! Thank!


ReplyQuote
Share: