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.

Custom Page Builder Widget Groups not working

Resolved 3 replies pluginplugin-page-builder
11 years ago · Last reply by Greg Priday 11 years ago

Hello, I discovered Site Origin recently while doing a research on page builders for an upcoming project. I have to say this is a great plugin!

I’m having trouble getting a custom group which I’ve added, following the instructions from this page:
https://siteorigin.com/docs/page-builder/widget-groups/

Adding group with a name of ‘Testing Widgets’:

if ( ! function_exists( 'testing' ) ) :
function testing( $tabs ) {
  $tabs[] = array(
    'title' => __('Testing Widgets', 'siteorigin-panels'),
    'filter' => array(
      'groups' => array('testing')
    )
  );
  return $tabs;
}
endif;
add_action('siteorigin_panels_widget_dialog_tabs', 'testing');

Now the for next part, I have registered a widget which appears in the list of all widgets, but I could not get it to appear inside any group (I’ve tried ‘wordpress’, ‘panels’, etc). Here’s the code:

function __construct() {
      parent::__construct(
          'foo_widget', // Base ID
          __( 'Testing', 'text_domain' ), // Name
          array(
              'description' => __( 'A Foo Widget', 'text_domain' ),
              'panels_groups' => 'testing',
          )
      );
    }

Am I missing something? Thanks in advance.

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Johnny G 11 years, 1 month ago

    Sorry, forgot to mention I’m using v2.0.7 of the page builder.

  2. Johnny G 11 years, 1 month ago

    Problem solved, there is an error in the documentations:

    In the line:

    'panels_groups' => 'testing',

    should be:

    'panels_groups' => array('testing'),

    Hope it helps for those having the same problem as me. Thanks.

  3. Greg Priday Staff 11 years, 1 month ago

    Thanks for the note Johnny! I’ll fix up the documentation now.

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