Customizing wordpress comment design and functionality

Front-End Dev Note September 2, 2022

Hello, I’m Nicole Manalo, a Front-end Team Lead for five years now. I’ve been a PHP developer since 2014 or 2015, but I only started working on customizing some templates and other functionalities on wordpress when I got here in the company. In this article I will be assisting you on how to customize the look of your comment layout on the front side.



The original comment’s visual look was like this. More information is visible on the screen, such as thumbnail, logged in account name, date and time, and the main content/comment. And the form has a lot of information needed to add, so our client requested only specific information such as public name since they’re using a single account per department, and the comment itself.



Default comment layout of wordpress for default theme Twenty Twenty-One



Client custom layout look



Here’s the sample solution when the client requested a custom look of the comment section.


1. Install a plugin to add a custom field of public name, since the client was using one account, and wordpress uses the default first name and last name of comment, we will make some workaround.


Plugin name: WP Comments Field
Plugin URL:


Setup on plugin:

     a. Include the post type / custom post type to use the wp comment fields

       Add this image:

     b. Added field settings for public name

       Add this image:



2. Install another plugin to remove links/field in between comments


Plugin name: Comment Link Remove and Other Comment Tools

Plugin URL:


Setup on plugin:

     a. Tick the checkbox of “Remove WEBSITE field from comment form”

       Add this image to blog:



3. Comment functionality was generated by wordpress, so it’s already built from the front-end. I added here some workaround using JS and CSS. It depends on the layout and structure but this works on my side.


     Add image of JS code on blog:

     Add image of CSS code on blog:


  • Some parts must be hard to understand since we’re using scss. css is just a workaround for the layout, some are hidden, some are adjusted depending on the client’s layout. 



4. Add the comment functionality on your custom template single page.

     Add image:


  • The get_field code was originally from the ACF, we added an option on the custom post type itself to enable/disable the wordpress comment function, but ideally there’s a default option on the post itself, I just used it to match the layout with other custom fields.


There you have it, the comment function was already customized using the steps above. If you have more questions or clarifications, kindly contact me using this email []