Title: Remove &#039;textwidget&#039; class using functions.php file?
Last modified: August 21, 2016

---

# Remove 'textwidget' class using functions.php file?

 *  Resolved [Treebeard](https://wordpress.org/support/users/malawimama/)
 * (@malawimama)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/remove-textwidget-class-using-functionsphp-file/)
 * Does anyone know how to remove the textwidget class by adding something to the
   functions.php file?
 * I need to remove `<div class="textwidget">` and the ending `</div>` without hacking
   core files.
 * Thanks!
 * [http://wordpress.org/plugins/black-studio-tinymce-widget/](http://wordpress.org/plugins/black-studio-tinymce-widget/)

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

 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/remove-textwidget-class-using-functionsphp-file/#post-4021601)
 * Hello,
    the `textwidget` class is there to maintain compatibility with the WordPress
   native text widget. Actually there’s not a simple way to change that without 
   hacking the plugin’s source. Moreover unfortunately WordPress doesn’t have a 
   filter hook aimed to modify widget output on-the-fly. There are workarounds for
   that, but they’re not so handy (i.e. the [Widget Logic](http://wordpress.org/plugins/widget-logic/)
   plugin has such a filter hook internally). I think the best solution is to modify
   our plugin’s source, by adding one or more filters / hooks, in order to allow
   for better flexibility. I will update this topic when this feature will be available.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/remove-textwidget-class-using-functionsphp-file/#post-4021697)
 * Latest version 1.4.3 provides filter hooks to change or remove the markup around
   the widgets text. Please check the [FAQ](http://wordpress.org/plugins/black-studio-tinymce-widget/faq/)
   about how to use them.

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

The topic ‘Remove 'textwidget' class using functions.php file?’ is closed to new
replies.

 * ![](https://ps.w.org/black-studio-tinymce-widget/assets/icon.svg?rev=2627604)
 * [Black Studio TinyMCE Widget](https://wordpress.org/plugins/black-studio-tinymce-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/black-studio-tinymce-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/black-studio-tinymce-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/black-studio-tinymce-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/black-studio-tinymce-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/black-studio-tinymce-widget/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/remove-textwidget-class-using-functionsphp-file/#post-4021697)
 * Status: resolved