I have some widget in custom theme and that theme should be imported automatically. -> after click on import button all the required widget, blocks and pages will be installed in back end. I had already done with block and pages but I need to do it for widget now. Its really appreciated, If anyone can help me. Thanks.
-
Follow this link mageplaza.com/devdocs/magento-2-create-widget or this one magenticians.com/create-widget-in-magento-2– HiteshNov 26, 2018 at 5:54
-
can you please provide me xml parameters, to add already created CMS static block into widget??– Kruti AparnathiNov 26, 2018 at 6:47
-
It is possible to create new widget with Setup Script (see link magento.stackexchange.com/questions/221967/…), but this solution creates only entry in widget_instance table without creating entry in widget_instance_page. You need add some changed in Admin– Oleksandr DykyiJul 23, 2019 at 11:18
1 Answer
this link help to create and get some idea about create widget and how it work. https://www.mageplaza.com/devdocs/magento-2-create-widget/