• Resolved toastbrot

    (@toastbrot)


    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://www.ads-software.com/plugins/black-studio-tinymce-widget/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marco Chiesi

    (@marcochiesi)

    Hi there,
    ID and class attributes of widgets are usually controlled by your theme, as set in parameter before_widget in the 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. 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

    (@toastbrot)

    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

    (@marcochiesi)

    You’re welcome!

    P.s. I would appreciate if you could leave a positive (5-star) review for the plugin here.

    Thread Starter toastbrot

    (@toastbrot)

    Done.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove ID and Class’ is closed to new replies.