wp-AuthorComment

This Word­Press plu­gin will eas­ily allow you to uniquely style com­ments made by a post author. By default, author com­ments will be given a light yel­low back­ground, but this is entirely cus­tomiz­able at the plugin’s options page. Cus­tom styling requires only a basic under­stand­ing of CSS.

If you are using a mod­ern Word­Press theme, this should work auto­mat­i­cally after plu­gin instal­la­tion. If it does not, you will need to fol­low these directions:

  1. Log in to your Word­Press admin panel as an administrator.
  2. Go to Appearance > Editor
  3. Select the Comments (comments.php) file — Popup Comments (comments-popup.php) if you use popup comments.
  4. Locate the open­ing HTML tag that wraps indi­vid­ual com­ments. This will be inside of a PHP foreach state­ment. The open­ing tag should be an HTML div or li element.
  5. If this ele­ment already has a class name assigned, add the fol­low­ing code within the class name’s quote marks:
    <?php if (method_exists($wpac, 'author_comment')) $wpac->author_comment();?>
  6. If this ele­ment does not have any classes assigned, add the fol­low­ing code within the open­ing before the end of the open­ing tag:
    class='<?php if (method_exists($wpac, 'author_comment')) $wpac->author_comment();?>'
  7. Click the ‘Update File’ button.

Comments

  1. nice awe­some plugin

  2. Cant get the TB to actu­ally show up. please help. Im clueless

  3. Does this plu­gin work on 2.9.1? I can’t find any fore­ach state­ment on comments.php.

    Thank you.

  4. Very nice and very use­ful plugin

  5. Great, great job, and use­ful too.

  6. I trawled around for and even­tu­ally found the core func­tions that allow you to add spe­cific capa­bil­i­ties to a role

  7. Thx for the plu­gin.. Very nice

  8. Thanks guys, very use­ful and hard to find plu­gin, good job!

  9. recip­i­ents ? cloud ? chance ? all, ? customers.

  10. San­gat bersyukur, akhirnya nemu yang mem­ba­has ini. makasih ya…

  11. Thanks for the aus­pi­cious writeup. It in truth used to be a amuse­ment account it.
    Glance advanced to more added agree­able from you!
    By the way, how could we keep up a correspondence?

Leave a Comment

Please note our comment and privacy policies.

(required)
(required)

Trackbacks

  1. […] wp-​​AuthorComment: Lets you style com­ments by the blog’s author dif­fer­ently. So you could change colours, inden­ta­tion, back­ground, what­ever. Dead sim­ple, but very cool. […]

  2. […] 26.Wp-AuthorComment […]

  3. […] 26.Wp-AuthorComment […]

  4. […] 26.Wp-AuthorComment […]

  5. […] wp-​​AuthorComment: Lets you style com­ments by the blog’s author dif­fer­ently. So you could change colours, inden­ta­tion, back­ground, what­ever. Dead sim­ple, but very cool. […]

  6. […] 26.Wp-AuthorComment […]

  7. […] 26.Wp-AuthorComment […]

  8. […] 26.Wp-AuthorComment […]

  9. […] Wp-​​AuthorComment […]

  10. […] Wp-​​AuthorComment […]

  11. […] Wp-​​AuthorComment […]