Title: Comment Layout
Last modified: February 3, 2021

---

# Comment Layout

 *  Resolved [parkinternet](https://wordpress.org/support/users/parkinternet/)
 * (@parkinternet)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/)
 * Dear Sir/ Mam, I want to change my generate press comment layout exactly like
   this – [https://kinsta.com/blog/rank-math-vs-yoast](https://kinsta.com/blog/rank-math-vs-yoast).
   How can i change it? I want same as the reference url.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcomment-layout%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-13998838)
 * Hi there,
 * Is there a specific part you are referring to?
 * Please be mindful that we cannot provide a full custom solution in the forum 
   here but I’ll try to point you in the right direction.
 *  Thread Starter [parkinternet](https://wordpress.org/support/users/parkinternet/)
 * (@parkinternet)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-14001903)
 * Ok sir no problem !! , Can you please provide me the code of how can i change
   the alignment? It means how to add comment policy below the title and and alignment
   of placeholder box like given here – [https://kinsta.com/blog/rank-math-vs-yoast](https://kinsta.com/blog/rank-math-vs-yoast)
 *  [Elvin](https://wordpress.org/support/users/ejcabquina/)
 * (@ejcabquina)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-14002040)
 * Hi there,
 * You can add a comment policy by using the `generate_below_comments_title` hook.
 * Example:
 *     ```
       add_action('generate_below_comments_title',function(){
       echo '<p class="comment-policy"><strong>Comment policy:</strong> We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted.</div>';
       });
       ```
   
 * As for the specific styling of the box(shadow, padding, etc):
 * Try this:
 *     ```
       div#respond {
           display: block;
           padding: 40px;
           background: #fff;
           background-size: cover;
           background-repeat: no-repeat;
           background-position: 50%;
           box-shadow: 0 10px 40px 0 rgb(47 47 47 / 10%);
           position: relative;
           transition: all .2s linear;
       }
       ```
   
 * The alignment is WordPress default.(text-align:left;)
 *  Thread Starter [parkinternet](https://wordpress.org/support/users/parkinternet/)
 * (@parkinternet)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-14002441)
 * Thanks [@ejcabquina](https://wordpress.org/support/users/ejcabquina/) but i want
   to move the comment policy text below leave a reply
 *  [Elvin](https://wordpress.org/support/users/ejcabquina/)
 * (@ejcabquina)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-14002643)
 * There’s no hook within the comment box directly below the leave a reply, unfortunately.
 * But you can try filtering the default WordPress comment template by doing this:
 *     ```
       function wpdocs_comment_form_defaults( $defaults ) {
         $defaults['title_reply_after'] = '</h3><p class="comment-policy"><strong>Comment policy:</strong> We love comments and appreciate the time that readers spend to share ideas and give feedback. However, all comments are manually moderated and those deemed to be spam or solely promotional will be deleted.</p>';
         return $defaults;
       }
       add_filter( 'comment_form_defaults', 'wpdocs_comment_form_defaults' );
       ```
   
 *  Thread Starter [parkinternet](https://wordpress.org/support/users/parkinternet/)
 * (@parkinternet)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-14003139)
 * Thanks [@ejcabquina](https://wordpress.org/support/users/ejcabquina/) it’s worked,
   one last help can we add a button after “Leave a reply” like this [https://prnt.sc/ya6ba9](https://prnt.sc/ya6ba9).
   Such that users can easily navigate through it. Please Sir Last help
 *  [Leo](https://wordpress.org/support/users/leohsiang/)
 * (@leohsiang)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-14004437)
 * That one would be more difficult unfortunately – you will need to modify the 
   default WordPress comment template itself.
 *  Thread Starter [parkinternet](https://wordpress.org/support/users/parkinternet/)
 * (@parkinternet)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-14007562)
 * Ok thanks for your free help, now it’s time to close the support forum !!

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

The topic ‘Comment Layout’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [Comment System](https://wordpress.org/support/topic-tag/comment-system/)

 * 8 replies
 * 3 participants
 * Last reply from: [parkinternet](https://wordpress.org/support/users/parkinternet/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/comment-layout/#post-14007562)
 * Status: resolved