Title: Remove ID and Class
Last modified: August 30, 2016

---

# Remove ID and Class

 *  Resolved [toastbrot](https://wordpress.org/support/users/toastbrot/)
 * (@toastbrot)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/remove-id-and-class/)
 * Hello.
    How do i remove the ‘ID’ and / or ‘class’ in the output? I want to remove:`
   id="black-studio-tinymce-2` `class="widget widget_black_studio_tinymce"`
 * i tryed to put
 *     ```
       add_filter( 'black_studio_tinymce_before_text', '__return_empty_string' );
       add_filter( 'black_studio_tinymce_after_text', '__return_empty_string' );
       ```
   
 *  in the functions.php
    No result. Can you help me?
 * [https://wordpress.org/plugins/black-studio-tinymce-widget/](https://wordpress.org/plugins/black-studio-tinymce-widget/)

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

 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/remove-id-and-class/#post-6797172)
 * Hi there,
    ID and class attributes of widgets are usually controlled by your 
   theme, as set in parameter `before_widget` in the [register_sidebar](http://codex.wordpress.org/Function_Reference/register_sidebar)
   call. So you should check your theme’s `functions.php` file and change it accordingly
   to your needs. For further info check our FAQ about [How to customize widget appearance](https://wordpress.org/plugins/black-studio-tinymce-widget/faq/).
   BTW, with reference to that FAQ, the code snippet you tried to use is for the`{
   before_text}` part, but you need to operate on the `{before_widget}` instead,
   which is out of the control of the plugin.
 *  Thread Starter [toastbrot](https://wordpress.org/support/users/toastbrot/)
 * (@toastbrot)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/remove-id-and-class/#post-6797193)
 * Thank you for your fast Answer Marco you pointed me in the right direction. You
   helped me. I was able to fix my Problem. I just had to change the register sidebar.
 * Keep up the good Work.
 *  Plugin Author [Marco Chiesi](https://wordpress.org/support/users/marcochiesi/)
 * (@marcochiesi)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/remove-id-and-class/#post-6797194)
 * You’re welcome!
 * P.s. I would appreciate if you could leave a positive (5-star) review for the
   plugin [here](https://wordpress.org/support/view/plugin-reviews/black-studio-tinymce-widget#postform).
 *  Thread Starter [toastbrot](https://wordpress.org/support/users/toastbrot/)
 * (@toastbrot)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/remove-id-and-class/#post-6797215)
 * Done.

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

The topic ‘Remove ID and Class’ 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/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [remove](https://wordpress.org/support/topic-tag/remove/)

 * 4 replies
 * 2 participants
 * Last reply from: [toastbrot](https://wordpress.org/support/users/toastbrot/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/remove-id-and-class/#post-6797215)
 * Status: resolved