Help adding code to comments.php per Author Highlight plugin
The topic ‘Help adding code to comments.php per Author Highlight plugin’ is closed to new replies.
The topic ‘Help adding code to comments.php per Author Highlight plugin’ is closed to new replies.
(@lizzyhagen)
13 years, 10 months ago
Highlighting comments worked for the main user before the upgrade (4 versions). Can someone help me with this?
I have the Author Highlight Plugin – http://plugins.trac.ww.wp.xz.cn/wiki/AuthorHighlight – to use. And it says to add code into my comments.php. But where? ..and what does the “This is a comment” need to be?
I included my comments.php at the bottom.
Thanks in advance for your help!
FROM AUTHOR HIGHLIGHTS
You need to add this code to your comments.php file (in your theme’s directory):
<?php author_highlight(); ?>
It needs to be withing the loop for the comments, and you want to specify it so that it outputs into a class attribute. Something like this:
<div class=”<?php author_highlight(); ?>”>
This is a comment.
</div>
FROM MY COMMENTS.PHP FILE
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. Your posted code may now have been damaged by the forum’s parser.]