• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
WPFeed

WPFeed

  • News
  • Tutorials
    • WordPress Multisite
    • BuddyPress
    • Design
  • Reviews
    • Plugins
  • Roundups
  • Snippets
  • Giveaways
Home » BuddyPress » How to Edit or Remove Before and After Comment Notes

How to Edit or Remove Before and After Comment Notes

In most standard WordPress themes, you’ll see before and after comment notes. This is an example from Twenty Twelve theme:

comment before

I’ve seen many people asking how to remove any of these notes. It turned out that this is very simple to do. Using comment_form_defaults filter, we can easily customize the notes or completely remove them.

Here’s a working snippet that can be placed on functions.php file of your theme.

The comment_form_defaults filter accepts many parameters and to customize the before notes, we need to pass comment_notes_before parameter and to customize the after notes, we need to pass comment_notes_after parameter. The code above will completely remove the before and after comment notes. Here’s the result:

comment-after

If you wish to change the before and after notes, simply put your text inside the ' ' tag and it will overwrite the default notes. Example:

$fields['comment_notes_before'] = 'This is an exampe of before comment notes.'; // Overwrite the default before comment notes.

We hope this tutorial helped you to edit or remove before and after comment notes on your WordPress site. If you’ve any question feel free to drop your comment below.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • WordPress is a brilliant platform that is loaded with tons of stuff for websites.
  • How to Sync Stock & Price for WooCommerce Products
  • How to migrate a WooCommerce Store to a new site
  • How to Import WooCommerce Products
  • How to export WooCommerce Orders

Copyright © 2023 · WPFeed.com - A Project of TechAbout LLC.

  • About us
  • Advertise
  • Write for us
  • Terms and Conditions
  • Privacy Policy
  • Contact us