Setup & site building · Guide
How to Remove Leave a Reply in WordPress (Step by Step)

Short answer
To remove Leave a Reply, close comments on the post or under Settings, then Discussion, which hides the comment form. In a block theme, you can delete the comments block from the Single Posts template. To keep comments but change or hide the heading, use the comment_form_defaults filter or a CSS rule.
Key takeaways
- Leave a Reply is the default heading of the comment form.
- Closing comments removes the form in most themes.
- Bulk edit closes comments on many existing posts at once.
- Block themes need the comments block removed from templates.
- A filter renames the heading, CSS hides it visually.
How do you remove “Leave a Reply” in WordPress?
To remove the Leave a Reply section, close comments on the post or site-wide, delete the comment form block from the template in a block theme, or hide or rename the heading with a small code snippet or CSS.
Leave a Reply is the default heading above the WordPress comment form. It appears on posts, and sometimes pages, whenever comments are open.
The right fix depends on what you want. Some people want no comments at all.
Others want comments but a different heading. This guide covers both.
What is the “Leave a Reply” section?
It is the comment form that WordPress adds below posts, with Leave a Reply as its default heading, produced by the comment_form function in classic themes or the comments blocks in block themes.
The heading text comes from the title_reply argument of the comment_form function. Themes can change it, which is why some sites show Leave a Comment instead.
The form only appears when comments are open for that post. Closing comments removes it automatically in most themes.
Under the heading, the form usually asks for a name, email, website and the comment itself. A Post Comment button sits at the bottom.
The same form is used when someone clicks Reply on an existing comment. In that case the heading often changes to Leave a Reply to followed by the commenter's name.
Which removal method should you choose?
Close comments if you do not want comments at all, edit the template if you want a block theme without the form, and use a filter or CSS if you only want to change or hide the heading.
| Goal | Best method | Code needed |
|---|---|---|
| No comments on one post | Discussion setting in the post | No |
| No comments on new posts | Settings, Discussion | No |
| No comments on existing posts | Bulk edit in the Posts list | No |
| Remove form from block theme layout | Edit the Single template | No |
| Change the heading text | comment_form_defaults filter | Yes, a few lines |
| Hide only the heading | Custom CSS | Yes, one line |
| Turn off comments everywhere | Disable Comments plugin | No |
Method 1: How do you remove it from a single post?
Open the post, find the Discussion setting in the post sidebar, untick Allow comments, and click Update.
In recent WordPress versions, the Discussion option sits in the Post tab of the settings sidebar. It may show as a link reading Open or Closed.
Once comments are closed, the Leave a Reply form disappears from that post. Existing approved comments usually remain visible.
Some themes show a short Comments are closed message instead of the form. That text also comes from the theme, so you can hide it with CSS or a theme option if you prefer a clean finish.
Pages work the same way. If you cannot see the Discussion option on pages, your theme or a plugin may have hidden it.
Method 2: How do you stop it on all new posts?
Go to Settings, then Discussion, untick Allow people to submit comments on new posts, and save, so future posts are published with comments closed.
The Discussion Settings documentation explains every option on this screen.
This only affects posts you create after saving. Older posts keep their current setting, so use the next method for those.
For a complete walkthrough of comment options, see our guide on how to turn off comments in WordPress.
Method 3: How do you remove it from existing posts in bulk?
In the Posts list, select the posts, choose Edit from the Bulk actions menu, set Comments to Do not allow, and click Update.
Use the checkbox at the top of the list to select every post on the page. Increase the number of items per page in Screen Options to handle more at once.
Repeat for pages and any custom post types that show comments.
Bulk editing changes the comment status only. It does not delete existing comments.
Pingbacks and trackbacks use a separate setting in the same bulk edit panel. Set Pings to Do not allow as well if you want to stop those notifications.
Method 4: How do you remove the comment form in a block theme?
Go to Appearance, then Editor, open Templates, select the Single Posts template, click the Comments block, and delete it or just its comment form block, then save.
Block themes such as Twenty Twenty-Four place a Comments block at the bottom of the single post template. Inside it sits a Comments Form block that outputs the Leave a Reply heading and fields.
Use the List View to find nested blocks easily. Our guide on how to delete a block in WordPress shows how.
Deleting the block hides the form on every post using that template, even if comments are technically open. Closing comments as well keeps spam bots from posting directly.
The Learn WordPress site has free lessons on editing templates if the Site Editor is new to you.
Method 5: How do you change the “Leave a Reply” text with code?
Add a filter on comment_form_defaults in a child theme's functions file or a code snippets plugin, and set title_reply to your new heading or to an empty string.
The comment_form_defaults hook lets you change the form's default arguments. A short example:
add_filter( 'comment_form_defaults', function ( $defaults ) {
$defaults['title_reply'] = 'Share your thoughts';
return $defaults;
} );
Set the value to an empty string to remove the heading but keep the form. Some themes pass their own title, which can override this filter, so test the result.
Never edit the parent theme's files directly. Updates overwrite them. Use a child theme or a snippets plugin instead.
Method 6: How do you hide the heading with CSS?
Add a CSS rule that targets the comment reply title, such as #reply-title with display none, in Additional CSS or your theme's custom CSS area.
A typical rule looks like this:
#reply-title,
.comment-reply-title {
display: none;
}
The MDN page on the display property explains how display none removes an element from the layout.
CSS only hides the heading visually. The form still works, and screen readers may not announce a heading, so add context in another way if you keep the form.
Theme class names vary. If the rule does nothing, right-click the heading, choose Inspect, and copy the actual ID or class.
In a block theme, add the rule under Styles, then Additional CSS in the Site Editor. In a classic theme, use Appearance, then Customize, then Additional CSS.
Method 7: How do you remove comments everywhere with a plugin?
Install a plugin such as Disable Comments, choose to disable comments everywhere or for selected post types, and save its settings.
The Disable Comments plugin removes comment forms, menu items and related widgets in one go.
This is the quickest option for business sites that never want comments. It also hides comment links from the dashboard.
Choose a plugin that is actively maintained and tested with your WordPress version. Check the last updated date on its plugin page before installing.
If you change your mind later, deactivating the plugin brings comments back based on each post's own settings.
Why does “Leave a Reply” still show after these changes?
A page cache, a theme option that forces comments on, or a page builder template with its own comment widget can keep the section visible after you change settings.
Clear your caching plugin and CDN first. Our guide on how to clear cache in WordPress lists every layer.
Check your theme's options for a comments toggle. Some themes, such as Astra or GeneratePress, have their own setting.
If you use Elementor or another builder, check its single post template for a Post Comments widget and remove it there.
Should you remove comments completely?
Remove comments if they bring mostly spam or no real discussion, but keep them if readers ask useful questions, since comments can add fresh content and build community.
Many business and service sites do fine without comments. Blogs and tutorial sites often benefit from them.
If spam is the main problem, filtering may be better than removal. Read our guide on how to stop comment spam in WordPress before turning everything off.
Frequently asked questions
Will removing Leave a Reply delete existing comments?
No. Closing comments or removing the form stops new comments but keeps approved comments stored in the database. Depending on your theme, existing comments may still display. To hide old comments too, remove the comments block from the template or use a plugin that disables comments everywhere.
How do I change Leave a Reply to Leave a Comment?
Use the comment_form_defaults filter in a child theme or a code snippets plugin and set the title_reply value to your new text. Some themes set their own heading, so if the filter has no effect, check the theme's settings or documentation.
Why is Leave a Reply showing on my pages?
Pages can have comments too, and some themes add the comment form to page templates. Open the page, close comments in the Discussion setting, or bulk edit pages to disallow comments. In block themes, check the Page template for a comments block.
Is hiding the comment form with CSS enough to stop spam?
No. CSS only hides the form visually, and spam bots can still post comments directly to WordPress while comments are open. If you do not want comments, close them in the settings or use a plugin that disables them fully.
Sources
- comment_form() WordPress Developer Resources
- comment_form_defaults WordPress Developer Resources
- Discussion Settings Screen WordPress.org Documentation
- Disable Comments WordPress.org Plugins
- display MDN Web Docs
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


