Home>Support>Custom Page Builder Widget Groups not working

Custom Page Builder Widget Groups not working

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

This problem is the same link : https://siteorigin.com/thread/custom-page-builder-widget-groups-not-working/

I’ve tried these steps. I did not work.

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, 1 month ago Alex S
    Hi, I Work Here

    Hi Yalcinkaya,

    Can you please send me a copy of the code you’re using so I can check over it?

  2. 8 years, 1 month ago yalcinkaya

    Hi Alex,

    Thank you for your answer. I realized my mistake. Write code for a long time. Sometimes people don’t notice little mistakes. I wrote panel groups instead of Panels Groups :)

    I noticed when I wrote the following reply.

    /* Load Widgets */
    function add_my_awesome_widgets_collection( $folders ) {
    	$folders[] = BASEPATH . '/widgets/';
    	return $folders;
    }
    add_filter( 'siteorigin_widgets_widget_folders', 'add_my_awesome_widgets_collection' );
    
    function mytheme_add_widget_tabs($tabs) {
    	$tabs['mytheme'] = array(
    		'title' => __('My Tab', 'mytheme'),
    		'filter' => array(
    			'groups' => array('mytheme')
    		)
    	);
    	return $tabs;
    }
    add_filter('siteorigin_panels_widget_dialog_tabs', 'mytheme_add_widget_tabs', 20);
    

    The code of the class I prepared :

    class SiteOrigin_Widget_SliderSlick extends SiteOrigin_Widget {
    	function __construct() {
    		parent::__construct(
    			'ty-slider-slick',
    			__( 'SiteOrigin Slider Slick', 'so-widgets-bundle' ),
    			array(
    				'description'   => __( 'A simple Slider Slick.', 'so-widgets-bundle' ),
    				'help'          => 'http://example.com/hello-world-widget-docs',
    				'panel_groups' => array('mytheme') // Incorrect code :)
    			)
    		);
    	}
            .
            .
            .
    
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