Title: &#8220;leva a comment&#8221; button
Last modified: December 12, 2020

---

# “leva a comment” button

 *  [Bertil Rosenius](https://wordpress.org/support/users/bertil-rosenius/)
 * (@bertil-rosenius)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/leva-a-comment-button/)
 * Background
 * WP: 5.6
    Theme: Twenty Twenty-One
 * Question
 * My site always shows ”my latest post”, ”full text” (no ”summary”).   For people
   who don’t click the post-title, but just read the text, there is no button that
   leads them to the ”leave a comment” form. Are there any simple why to fix this
   in the “entry-footer”.
    -  This topic was modified 5 years, 6 months ago by [Bertil Rosenius](https://wordpress.org/support/users/bertil-rosenius/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fleva-a-comment-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Ian Sackofwits](https://wordpress.org/support/users/plantprogrammer/)
 * (@plantprogrammer)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/leva-a-comment-button/#post-13780992)
 * Hey, bertil-rosenius, one way that you can address this is to have a child theme
   of twentytwentyone and override the `twenty_twenty_one_entry_meta_footer` function
   in your theme.
 * Function is located in “inc/template-tags.php”.
 * This is just some quick PHP I whipped up that will direct people to your comment
   form associated with the post:
 * `echo "<a href='" . get_the_permalink() . "#reply-title'>" . "Leave a Comment"."
   </a>";`
 * where `reply-title` is the ID of the HTML heading of the comment adding section.
 * Feel free to modify this snippet and include it in any location within the function
   as you feel appropriate.
 * This link will give you more information about the function:
 * [https://themes.trac.wordpress.org/browser/twenty-twenty-one/1.0/inc/template-tags.php?rev=140043#L57](https://themes.trac.wordpress.org/browser/twenty-twenty-one/1.0/inc/template-tags.php?rev=140043#L57)
 * Here is a tutorial about pluggable functions, if you wish to read more about 
   them: [https://webdesign.tutsplus.com/tutorials/a-guide-to-overriding-parent-theme-functions-in-your-child-theme–cms-22623](https://webdesign.tutsplus.com/tutorials/a-guide-to-overriding-parent-theme-functions-in-your-child-theme–cms-22623)
 * Also, here is a link about child themes: [https://developer.wordpress.org/themes/advanced-topics/child-themes/](https://developer.wordpress.org/themes/advanced-topics/child-themes/)
 *  Thread Starter [Bertil Rosenius](https://wordpress.org/support/users/bertil-rosenius/)
 * (@bertil-rosenius)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/leva-a-comment-button/#post-13781077)
 * Thank you – 😃 !
 * I will take a lock to see if I understand.

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

The topic ‘“leva a comment” button’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Bertil Rosenius](https://wordpress.org/support/users/bertil-rosenius/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/leva-a-comment-button/#post-13781077)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
