Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

Remove HTML Tags and Attributes in WordPress Comments

January 13, 2014 Leave a Comment

Bu default WordPress comments have instructions for users on how to use HTML tags and attributes in the actual comments, many users are turned off by this, here is how to remove HTML Tags and Attributes section in the post comments form in WordPress theme.

wordpress-html-comments

By default this format appears in a few themes including Twenty Twelve, you need to change a php snippet of code in the comments.php file, if you are using a child theme just create a new comments.php file in the child theme directory with the content from the parent, then search and replace on line 58(ish – of TwentyTwelve).

From

<?php comment_form(); ?>

 

to:

<?php comment_form(array('comment_notes_after' => '')); ?>

 

Now all the HTML tags are gone.

Cats: WordPress Tags: twenty twelve

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Copyright © 2023· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2023 · gee on Genesis Framework · WordPress · Log in