By default, WordPress will add some classes to each comment with comment_class()
. All comments get the class comment
. So you can style comments with:
.comment {
border: 10px solid red;
}
See wp-includes/comment-template.php
for more context.
Related Posts:
- How to show Disqus comment count number only without text?
- Can’t seem to get this CSS to work…any ideas why? [closed]
- css hide all the comment reply links except the lowest nested comments
- Which filter/hook to use for styling comments?
- comments_popup_link() – how to load different classes/images according to different comment condition?
- Highlight comments made by registered users of the site
- JetPack comment threads are displaying above comment box? [closed]
- Styling Admin comments in WP 3.1.3
- Is it possible to pull comments from facebook into your blog?
- Enable Submit Comment Without Page Reload (Using Ajax)?
- How to deal with small scale comment spam on small commercial sites? [closed]
- Get comments for more than one post
- Add placeholder attribute to comment form fields
- human_time_diff() returns “48 years ago” for all comments
- Allow anonymous comments, but prevent spam [closed]
- Where to remove from comment’s feed?
- Why are default comments deprecated?
- Comments Reply Form
- Delete all user comments
- Why do I get email notifications about comments that WordPress has already determined are spam?
- “Leave a comment” link even when you can’t
- User can post only one comment per day on one page
- customize comment form
- How to check if commenter is the_author?
- Strategies for coping with hyperagressive spambots?
- How to save new comment as custom comment type?
- How to remove the “on” string before recent comments link?
- WordPress unresponsive after calling wp_update_comment()
- edit comments capability for authors
- Publish a message on facebook after having posted a comment
- How can I edit the Twenty Ten Theme to remove the comments box when a page uses a specific template?
- Highlight Author Comments issues
- Users with custom roles can’t read each other’s comments
- Why is_wp_error() is not returning false even there’s no defined error
- Separete trackbacks/pings and numbered comments
- How can I fix wp_insert_comment failure when ‘comment_content” includes slanted apostrophe in Excel csv source data
- Is WordPress vulnerable to “comment posting forgery”?
- Author can only see own post comment and can moderate
- highlight “starred” comments by admin
- Set noindex page-comment from Pages 2, 3 and More?
- How can I convert anonymous commenters into registered users?
- How can I edit comment notification email content?
- Limit comments per user per post
- Filter In Reply comments from WordPress Admin Panel
- How can I hide the IP of registered commentators?
- How to configure WordPress + plugins to support these commenting features
- Comments vs. Pingbacks next page issue
- How to automatically evaluate comment content without user seeing the delay?
- Comments invisible after moving WordPress to new server, while commenting still works
- Notify post author for a new comment on his post?
- Allow the comment author to delete their own comments
- Spammers attacking my WordPress Site – Removing URL field from core? [closed]
- Prioritizing the wordpress comments
- Comments from vbulletin topic [closed]
- wp.getComments is returning nill, when i called from my iphone app [closed]
- Admin can enter JavaScript – potential security risk?
- custom hooks before a comment is updated/edited in the database
- Replace comments with a dummy text
- How can I get list of emails of users who commented on a post?
- Disable only the comment form/box itself?
- How to hide wordpress post comment form for specific role
- How to customize the title from comments form?
- How to display comment meta under each comment content
- Why there is still an approved comment after deleting all?
- Custom comment field not showing when logged-in
- Comments and post dates not showing up correctly on “posts page”
- Returning error upon comment being flagged as spam
- is it possible to have the full code instead in the comments.php page
- How do i remove approved spam comments by date?
- Remove Javascript generated by Comments
- How to Trigger comment_form_after action if comment_form() not used
- Insert ads between comments
- get_query_var(‘paged’) for WP_Comment_Query always return 1 when using paginate_comments_links()
- How to only show current user’s comments and comments on current user’s posts in wp admin
- How to make author comment name to “Editorial Staff” no matter which ever author is replying to comments from his/her account?
- Changing the Comment Fields using Filter (without success)
- How to show username in reply to comment?
- Comments pagination: reverse JUST the links texts (1-2-3 to 3-2-1), not comments order
- Display date and time into post edit comments section
- Disallowed Tag Present in AMP WordPress ()
- Subcriber getting multiiple notifications for new comments
- Comments/Discussion Not enabled on newly created posts/pages
- Fire Social Annex Code on Comment Approval
- How can I enable commenting from mobile view?
- Change Comment Text [duplicate]
- Comments closed but enabled on edit screen
- Let user delete comment on front end only
- jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default
- Comment form – different title if no comment yet
- WordPress Comments jQuery Doesn’t submit
- Insert comment and still use moderation
- Loop not displaying comments_popup_link
- Display of comment_date within get_comments?
- How to batch convert comments to posts?
- prevent duplicate comments using wp_insert_comment
- I need help about wordpress of members section
- comment awaiting moderation
- How do you fetch the authors email or IP from /comments? (REST API)
- How can I filter the user avatar displayed in comments? – get_avatar_url filter works everywhere but not in comments
- WordPress Editor widgets “comments” and “post comments form” getting disappeared with elementor [closed]