Home>Support>Custom Page Builder Widget Groups not working
  1. 7 years, 3 months 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. 7 years, 3 months 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