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.

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

8 years ago · Last reply by hideto0118 8 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Alex S Staff 8 years, 4 months ago

    Hi Hideto,

    This is possible by extending the widget.

  2. hideto0118 8 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread