Hello,
I am still having more fun with this plugin and I am trying to hide the comment's date. I was able to hide the date in function.php but the problem is you have the word 'at'. So the date was printed as (May 25, 2019 at).
I looked around and it is printed in ../weeblramp/integration/woocommerce/commentwalker.php on line 64 you have the date and time printed and in one html tag <time>. Also I could not override this file in my theme. The solution I came with is to change the code so we can have ability to hide it.
If you please change line 64 from
This is the html output.
Now I can remove the comment time in function.php and hide the word 'at' by css.
I am still having more fun with this plugin and I am trying to hide the comment's date. I was able to hide the date in function.php but the problem is you have the word 'at'. So the date was printed as (May 25, 2019 at).
I looked around and it is printed in ../weeblramp/integration/woocommerce/commentwalker.php on line 64 you have the date and time printed and in one html tag <time>. Also I could not override this file in my theme. The solution I came with is to change the code so we can have ability to hide it.
If you please change line 64 from
printf( __( '%1$s at %2$s', 'weeblramp' ), get_comment_date( '', $comment ), get_comment_time() );to
printf( __( '%1$s %2$s', 'weeblramp' ), "<span class='comment-date'>" . get_comment_date( '', $comment ) . "</span>", "<span class='comment-time'> at " . get_comment_time() . "</span>");
This is the html output.
<div class="comment-metadata"> <time> <span class="comment-date">May 25, 2019</span> <span class="comment-time"> at 10:54 am</span> </time> </div>
Now I can remove the comment time in function.php and hide the word 'at' by css.