Home>Support>Plugin Customization: Disabling choices of button design on Siteorigin Button Widget

Plugin Customization: Disabling choices of button design on Siteorigin Button Widget

Hi,

I would like to disable the choice of ‘atom’ and ‘ wire’ of button them on Siteorigin Button Widget.
I know I can directly modify the plugin code of so-widgets/widgets/button/button.php like below.

However, once the plugin is updated later, I need to re-modify them again.
Is there any better way to keep the modification even update happening?

Thank you and best regards,
Hideto

****** button.php ******
function get_widget_form() {
return array(

.
.
.

‘theme’ => array(
‘type’ => ‘select’,
‘label’ => __(‘Button theme’, ‘so-widgets-bundle’),
‘default’ => ‘atom’,
‘options’ => array(
//’atom’ => __(‘Atom’, ‘so-widgets-bundle’),
‘flat’ => __(‘Flat’, ‘so-widgets-bundle’),
//’wire’ => __(‘Wire’, ‘so-widgets-bundle’),
),
),

.
.
.

}
******************

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

  1. 6 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Hideto,

    This is possible by extending the widget.

  2. 6 years, 11 months ago hideto0118

    Okay I’ll read though that and if I have a question, I’ll ask here.
    Thanks for your help!

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