This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Remove widgets from being displayed in Page Builder

11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 11 years, 1 month ago

    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.

Have a different question or issue?

Start New Thread