• I was wondering how you can style the layout of comments on posts. For example, I’d like to reorder the date, comment, user name, etc., and change the spacing and breaks. In previous versions of WordPress I believe you could reorder those things directly from the comments.php file. However, it seems the php code for the date, name, etc. are all lumped together somehow in some external code that I don’t understand how to get to. I know how to style the fonts, colors, etc but I want to have more control on the layout and spacing of the comments as a whole. Any advice?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’d need to use wp_list_comments wuth a custom callback and then place your comment code as a function in functions.php.

    Thread Starter kdesign

    (@kdesign)

    I know this may be much to ask but can you give me an example of a custom callback and how that comment code will look in the functions.php file?

    I’m not familiar with the syntax yet… I’ve never had the need to edit so deeply into the code. I’d really appreciate it if you can send an example. Please let me know if you can. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to customize comments section’ is closed to new replies.