WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Theme Unit Test (2 posts)

  1. davidzs
    Member
    Posted 4 years ago #

    In the "Comment Test" post from the Theme Unit Test that WP gives I dont understand what it means by:
    Author comment is highlighted differently

    It seems like they are all pretty much the same, even on WP approved sites.

    Please explain

    Thanks

  2. Lance Willett
    Themer
    Posted 4 years ago #

    Author comment is highlighted differently
    It seems like they are all pretty much the same, even on WP approved sites.

    davidzs,

    Not all themes have author highlighting enabled, but it's a recommended practice. Especially for long, long comment lists! It helps you scan the comments quickly and see the author's replies easily.

    Since WordPress 2.7 the wp_list_comments template tag outputs an automatic class attribute for each comment which can be used to style author comments separately from normal comments.

    If you want to dig into this and create your own author highlighting styles, here's a great tutorial from ThemeLab: Highlight Author Comments in WordPress, The Easier Right Way.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags