Title: Show/Hide comment Toggle button
Last modified: May 20, 2020

---

# Show/Hide comment Toggle button

 *  Resolved [justano](https://wordpress.org/support/users/justano/)
 * (@justano)
 * [6 years ago](https://wordpress.org/support/topic/show-hide-comment-toggle-button/)
 * Hello.
    Where can I add Show/Hide comment Toggle button code? Should it be in
   the functions.php or comment.php? Would it work with Astra? I found one but could
   you give the code to add Show/hide comment toggle button? Thanks.

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

 *  [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years ago](https://wordpress.org/support/topic/show-hide-comment-toggle-button/#post-12869852)
 * Hello [@justano](https://wordpress.org/support/users/justano/)
 * Can you help us with which Comment Toggle code you are referring to?
 * Also, please help us with screenshots and reference to what you are trying to
   achieve.
 * So that we can take a look and help you accordingly.
 * Looking forward to hearing from you!
 * Regards,
    Suman
 *  Thread Starter [justano](https://wordpress.org/support/users/justano/)
 * (@justano)
 * [6 years ago](https://wordpress.org/support/topic/show-hide-comment-toggle-button/#post-12878252)
 * Hello.
    I meant create a button to show/hide comments and comments form. I found
   the jquery code to create button to show/hide comments. How and where should 
   I insert the code?
    -  This reply was modified 6 years ago by [justano](https://wordpress.org/support/users/justano/).
    -  This reply was modified 6 years ago by [justano](https://wordpress.org/support/users/justano/).
 *  [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years ago](https://wordpress.org/support/topic/show-hide-comment-toggle-button/#post-12885406)
 * Hello [@justano](https://wordpress.org/support/users/justano/)
 * The comments form used is the default WordPress comment form. We have fetched
   it and it would work the same way with other themes too.
 * You can use the plugins from the [following search](https://wordpress.org/plugins/search/custom+css+and+js/)
   to insert custom code.
 * I hope that helps.
 * Regards,
    Suman
 *  Thread Starter [justano](https://wordpress.org/support/users/justano/)
 * (@justano)
 * [6 years ago](https://wordpress.org/support/topic/show-hide-comment-toggle-button/#post-12886226)
 * Thank you!
    I now use Wpdisquz comments plugin and it has the feature.

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

The topic ‘Show/Hide comment Toggle button’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/astra/4.13.4/screenshot.jpg)
 * Astra
 * [Support Threads](https://wordpress.org/support/theme/astra/)
 * [Active Topics](https://wordpress.org/support/theme/astra/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/astra/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/astra/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [justano](https://wordpress.org/support/users/justano/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/show-hide-comment-toggle-button/#post-12886226)
 * Status: resolved