ThemeShaper Forums » Thematic

Highlight comments made by post author

(3 posts)
  • Started 4 years ago by macbort
  • Latest reply from macbort
  • This topic is resolved
  1. macbort
    Member

    I was wondering how hard it would be to conditionally add a CSS class to a comment for styling if the comment author matches the post author.

    I know there are plug-ins that are supposed to do this, but it seems like it should be fairly easy to accomplish either in the child theme functions, or in the Thematic core.

    Cheers,

    Jason

    Posted 4 years ago #
  2. Hey Jason,

    this can be done by using the following selector in your child theme's style.css:

    #comments-list li.bypostauthor {}

    Cheers,

    Chris

    Posted 4 years ago #
  3. macbort
    Member

    Chris:

    Thanks for your help. After you posted your answer, I did some more digging and found my specific problem.

    I imported my posts into WordPress from Movable Type, and in that process, the user-to-comment association got wiped out. Because of that, my comments never received the "bypostauthor" selector.

    After updating the comments table with a SQL query, things look perfect.

    Thanks again,

    Jason

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.