Clash between this plugin and function : siteorigin_panels_prebuilt_layouts
-
Hi I have the following code, which generates a template:
function mydtheme_prebuilt_layouts($layouts){ $json = '{"widgets":[{"title":"","panels_info":{"class":"WP_Widget_Calendar","raw":true,"grid":0,"cell":1,"id":0}},{"title":"","panels_info":{"class":"WP_Widget_Categories","raw":true,"grid":1,"cell":0,"id":1}}],"grids":[{"cells":2,"style":{}},{"cells":2,"style":{}}],"grid_cells":[{"grid":0,"weight":0.5},{"grid":0,"weight":0.5},{"grid":1,"weight":0.5},{"grid":1,"weight":0.5}]}'; $obj = json_decode($json); $layouts['home-page'] = array( // We'll add a title field 'name' => __('Home', 'sz'), // Required 'description' => __('Home', 'sz'), // Optional 'widgets' => $obj->widgets, 'grids' => $obj->grids, 'grid_cells' => $obj->grid_cells ); return $layouts; } add_filter('siteorigin_panels_prebuilt_layouts','mydtheme_prebuilt_layouts');
The problem is that if I disable the plugin: ‘SiteOrigin Widgets Bundle’ work load ‘layout’, when I select an item defined within the ‘page builder’ and if you stay active by loading the layout and never shows it. regards
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Clash between this plugin and function : siteorigin_panels_prebuilt_layouts’ is closed to new replies.