Hi,
You are right. Make a copy of this file and its path(Create the folders templates/content/comments and copy the file comment.php from the parent theme into this) in your child theme.
You can modify this template file to add your code, depending on where you want the avatar to be displayed.
I tried your solution, but there is no change. The strange thing is: There is even no change if I edit the file in the parent theme.
<?php
/**
* The template for displaying the single comment
*
* @package Customizr
* @since Customizr 3.5.0
*/
?>
<li <?php comment_class() ?> id="comment-<?php comment_ID() ?>" <?php czr_fn_echo('element_attributes') ?>>
<div id ="div-comment-<?php comment_ID() ?>" class="comment-section clearfix">
<div class="col-avatar">
<figure class="comment-avatar">
<?php
$iv_profile_pic_url=get_user_meta($get_the_author_meta->ID, 'iv_profile_pic_thum',true);
if($iv_profile_pic_url!=''){ ?>
<img src="<?php echo $iv_profile_pic_url; ?>">
<?php
}else{
echo' <img src="'. WP_iv_membership_URLPATH.'assets/images/Blank-Profile.jpg">';
}
?>
</figure>
</div>
This is the code I tried to call the user uploaded avatar pictures in the comments. I wanted to replace the gravatar images with this ones. But there is really absolute no change in the frontend.
This is really strange, it looks like this comment.php does not affect the comment section under my posts.
Hi,
In that case, try clearing the cache.
Do post your site url too.