Extend SiteOrigin slider with hide frames functionality

The SiteOrigin Widgets Bundle is one of my favorite plugins, not only because it has a bundle of widgets, but also because it is very extendable and allows other developers to customize and add more features to each widget. Moreover the guys of Siteorigin also provide a guide on how to extend the plugin (see https://siteorigin.com/docs/widgets-bundle/)

Recently I wanted to use the slider of the SiteOrigin Widgets Bundle but I also wanted to be able to  hide a frame or two – not deleted, which is the default option if you don’t want to display them anymore. Hiding and not deleting frames is a useful  feature when you have frames for  special occasions and don’t want to recreate them each time you need them.

The only thing needed is a checkbox “Hide this frame” into the frame’s tab, which then should be “be respected” by the rendering function of the slider, so the specific frame won’t be displayed.

The SiteOrigin slider widget’s settings with the “Hide this frame” functionality added.

So the addition of this extra functionality in the SiteOrigin slider turn out to be very easy.

All you have to do is to add the following code into your theme’s functions.php file



2 thoughts on “Extend SiteOrigin slider with hide frames functionality

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s