Home>Support>Remove widgets from being displayed in Page Builder

Remove widgets from being displayed in Page Builder

Hi,

I found this post on wordpress.org, and I need some help to understand it:
https://wordpress.org/support/topic/hiding-specific-widgets

Quote:
You can remove any widgets from being displayed in Page Builder by using the filter.

function mytheme_panels_widgets( $widgets ){
	unset($widgets['The_Widget_Class']);
	return $widgets;
}
add_filter( 'siteorigin_panels_widgets', 'mytheme_panels_widgets', 11);

You can use this to remove any widgets you need to. The example I gave runs with priority 11, to ensure it runs after all of Page Builders functions.
Quote end.

My question is:
How do I find The_Widget_Class from the different widgets?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Hi Hans

    There might be a better way but one way is to head to /plugins/siteorigin-panels/widgets/widgets open the widget in question, check for example animated-image.php, the class is:

    SiteOrigin_Panels_Widget_Animated_Image
    
Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More