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.

Replies

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

    Hi Yalcinkaya,

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

  2. yalcinkaya 8 years, 8 months ago

    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.

Have a different question or issue?

Start New Thread