Forum Discussion

Astroraf's avatar
Astroraf
Data Pipeline
07-09-2024
Solved

How to remove headers on a widget

I have previously seen this post on the community regarding removing a header from a widget but the solutions have either been removed in terms of plugins or the code provided does not work.  https:...
  • Astroraf's avatar
    07-09-2024

    widget.on('ready', () =>

    { const titleElementEditMode = element.parent().find('.transput-holder');

    const titleElementViewMode = element.parent().find('.widget-title__holder > widget-title');

    // Clear the contents of the elements

    titleElementEditMode.empty();

    titleElementViewMode.empty();

    // Set display style to none

    titleElementEditMode.css('display', 'none');

    titleElementViewMode.css('display', 'none');

    });

     

    Edit: For clear code