Hello!
Well I'm trying to modify my comments.php file in order to change the background color (change the CSS of comments) so that if a regular user post a comment, a particular style will be applied, and if the author of the post itself replies (hence post), another style will be applied.
Here is what I did, which does not work (keep in mind that I am completely new, even to PHP):
<?php
if( the_author() == comment_author )
// then do this set of code
else
// then do that set of code.
?>
So what it is doing, instead of of comparing the two, it is outputting (echo'ing) on the webpage. In this case, the_author is admin, and comment_author is also admin, and it is outputting adminadmin (1 word), and outputs the code which is in my else() statement.
So am I doing wrong?
Thanks for your help :)