Home>Support>Modify a Layout Builder Widget

Modify a Layout Builder Widget

My goal:
Create a modified Layout Builder Widget to be used in “mega menu” type of widget area.
Modifications include:
– adding a title
– adding an icon

The problem:
Layout Builder Widget doesn’t seem to use $form_options as other SO widgets do. (I guess) it can’t be called with $form_options like for example icons can:
ie:

$form_options = array(	
		'some_icon' => array(
				'type' => 'icon',
				'label' => __('Select an icon', 'widget-form-fields-text-domain'),
			)
)

Is there another way to get the layout builder functionality inside a custom widget?

Thanks.

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

  1. 8 years, 10 months ago Andrej Arh

    bump.

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