The comments are outputted via a callback function given as an argument in this function: wp_list_comments()
.
In your comments.php you will likely find the wp_list_comments()
function with often a callback argument like so
wp_list_comments( array ( 'callback' => 'callback_function_name'))
You can copy comments.php into your child-theme and modify the call to the function with a different callback function like so:
wp_list_comments( array ( 'callback' => 'my_comments_html'))
Then find the function from your original callback parameter 'callback_function_name'
, copy it in your child theme (in functions.php or make another .php file and include it), rename the function to 'my_comments_html'
and modify it there with the markup you like.
Hope that helps
Related Posts:
- How do I comment out a block of tags in XML?
- R: Comment out block of code
- How to rearrange fields in comment_form()
- Commenting in user profile page?
- How do I delete all comments from a specific old blog post?
- Removing the “Website” Field from Comments and Replies?
- How to enable comments for pending and draft posts?
- How to load and show comments with AJAX instead of pagination?
- Comments not appearing at all
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Comment Count for each Comment Author
- Show comments from multiple post IDs in comment template
- Hook/Filter before and after comments
- Comment form validation
- Sticky Comments
- Comments number message in password protected post
- Disable Comments Feed
- Use rich text editor in comments?
- Add a custom class to awating comments
- I have tried using Plugins to remove 72K comments with no success
- Show only posts which can be commented
- What should I hook to add extra fields to comments?
- show un-approved comments at wordpress front end
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, func
- How to add pagination to comments?
- Report spam button
- Recent comments from my blogs only
- show if comment is in moderation
- Disable or Enable Comments on Front end [closed]
- Change username to nickname in comment section
- Deleting the attached “comment replies” when trashing a comment
- How can I get a list of comments by target
- Load comments.php template outside the post loop
- Auto-fill Custom comment fields
- Highlighting the current users comment
- How to make all the posts commentable by default? Imputs in Settings/Discussions are not saved
- How to auto empty comment trash after X days
- comments.php keep comment date/time but remove date/time’s #hyperlink
- how to change comment author’s link from user’s website to author’s page(author.php)?
- Add class to comment form div when comment-reply button is clicked
- Disabling archives, search results, comments, etc?
- Control panel loads slowly due to 2 slow queries on comment table
- Display complete comment section via post ID
- WordPress comments – how to check if comment still needs to be approved?
- PAIN. Comments Pagination
- Comment Pagination Behavior wp_list_comments() – comment ordering and pagination
- How to retain comment text on comment form after login/registration?
- After Submitting Comment Form Shows an Empy Page in WordPress
- Unique User for all visitor, but possibility to comment with unique name
- comments_array filter doesn’t work in some themes
- Redirect when click on “response” in comment section
- Troubleshooting Emoji in Comments
- Link to a User’s Forum Profile From Their Comment
- strange behavior with comment position
- Safely editing core files
- Why could my comment_form variable not be working?
- Way to count the number of people who have commented on a post?
- Batch approve comments
- Disable comments and pingbacks on old custom post types
- Can I turn off further comments on a single page?
- How to remove the number of a comment in the url slug?
- How to allow duplicate comments?
- Are there some caveats for using guids for FB comments
- WordPress comments – delimiter “/” not found
- Make email not required comments.php
- Give subscribers the option to post anonymously
- Thesis Theme Custom Loop
- Sync comments between two WP installs
- Show image next to the comment author if have certain role
- Displaying comment counts in WP Gallery thumbnail view
- Removing comment option
- pre_comment_content filter not working using IntenseDebate Enhanced moderation
- How t Remove Labels from comment Box
- How to remove a span class?
- Edit Comments Fields
- Random output of comments using a shortcode
- Allow comments only for custom post type
- Comment author profile image
- Comment Form Fields when user logged in
- How can I enable comments on category page but not home page?
- Comment field override
-   not working in comments
- Badges for Guests based on their comment counts [closed]
- Comment section not appearing on posts
- Where is the Leave a Comment link set
- Disable comment moderation in multisite
- URLs to user page is broken
- Comments Template shows, but not the comments
- Auto disable comments with custom field
- delete user not working
- Force logged in users to provide more data when commenting
- How do I get the comments section to show up?
- By Default, Turn Comments Off for Pages & Leave Comments On for Posts
- How to remove or customize “Comment” in comments form?
- Getting thousands of spam comments
- check if a comment was made by a registered user
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved
- Get approved comments or comments that the author is me
- Show/Hide comments