The $depth
parameter in the walker class is used for outputting and padding the output. You can use it to format your HTML structure. For example:
<div class="comment-meta post-meta cmnt-padding-<?php echo $depth ;?>" role="complementary">
which will output an extra class for your comment wrapper, that you can use to style your comments.
Related Posts:
- How to wrap submit button of comment form with div
- Comment Walker vs. Comment Callback
- How can I limit the number of comments per registered user per day?
- Showing comments only to same custom user role
- How to hide “Trackback” on paginated comments
- how to have 2 comments_template() in one post
- Passing arguments to wp_list_comments callback function
- customize comment form
- comments_template not working correcly in custom template files
- How can I show comments in random order?
- How to get last comments but not from admin (or other specific user role/capability)?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, func
- Add classname comment template from functions.php
- Removing from Comment
- Customizing comments pagination for bootstrap
- comment_post action hook running on page load instead of after a comment is posted
- using comments_template() in custom single-portfolio.php
- ol children instead of ul children
- how to properly use comments-template.php
- WordPress comments – how to check if comment still needs to be approved?
- Modify WordPress Comment From For AMP Html
- comments_number not displaying
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- The comment could not be saved. No comment_ID on comments
- How to display comment meta under each comment content
- How can I embed comments plugin to my own website?
- Custom comment field not showing when logged-in
- Custom comment link
- How to display replies to his comments in user profile of current user
- How to show a list of comments on home page from all posts?
- reply comment below the comment box without reload page
- How to call out the date of user’s first comment?
- How to pass settings to comment_form() if theme only uses comments_template()?
- How to add a class to comment submit button?
- How Can I display the Current Logged-In User’s Comment at the Top of the Comments Section in WordPress?
- Comments page id wp_list_comments
- reply to comment excerpt instead of author in comment title
- Redirect first time comments
- How to maintain changes to comment-template.php
- Display Comment Form on dedicated Page for each post
- Commentform – Hightlight invalid fields instead of prompting towards error page
- Auto approve all comments (editor)
- The last comments of a post for the author of that post
- How to deal with small scale comment spam on small commercial sites? [closed]
- Add placeholder attribute to comment form fields
- human_time_diff() returns “48 years ago” for all comments
- Why are default comments deprecated?
- Comments Reply Form
- How to check if commenter is the_author?
- Strategies for coping with hyperagressive spambots?
- adding a text message beside the comment submit button
- 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()
- Custom disqus_identifier not properly changing default value
- Edit Comment_Field while using T5 Comment Textarea On Top-Plugin
- Registered but Anonymous comments
- Override comments.php template with plugin
- How can I stop WP from automatically marking “Automatically close comments on articles older than 28 days”? [closed]
- Callback function argument which is required for wp_list_comments ()
- The comment login form is visible to me but not to the user
- How to insert a comma to the child comment construction in function.php?
- Editing WordPress comments : generating comment from selection
- customizing TwentyEleven comments template
- Reply By Email to comment notifications
- wp_list_comments renders incorrectly nested
- Alternative to the filter comment_reply_link
- Number/ Position of a Comment
- code highiglight not working comment
- Comment number does not increment
- Can I have Comments open to specific users only?
- Commenting system for WordPress
- Commentlist: bypostauthor problem with children list
- Comments does not work?
- comment_notes_before not working
- why can’t I retrieve the comment ID?
- get_comment_link without pagination base in the returned URL?
- Copy and Paste Password for Comments
- 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 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)
- Display date and time into post edit comments section
- Disallowed Tag Present in AMP WordPress ()
- Comments/Discussion Not enabled on newly created posts/pages
- Fire Social Annex Code on Comment Approval
- How can I enable commenting from mobile view?
- 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
- Theme comment callback results nothing
- How to batch convert comments to posts?
- I need help about wordpress of members section
- comment awaiting moderation
- How do you fetch the authors email or IP from /comments? (REST API)
- WordPress Editor widgets “comments” and “post comments form” getting disappeared with elementor [closed]