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].
Hi,
I can not activate PageBuilder editor on “mycustom” post type and not set “margin-bottom” in settings page with this code in functions.php.
I’m using version 2.3.2
add_action( ‘after_setup_theme’, myfn );
function myfn(){
add_theme_support( ‘siteorigin-panels’, array(
‘tablet-layout’ => true,
‘tablet-width’ => 640,
‘margin-bottom’ => 0,
‘post-types’ => array( ‘post’, ‘paget’, ‘mycustom’ ),
) );
}
Please help me.
Hi Semih,
While you can do this, any and all settings defined via this method are very likely to be overridden. Just to confirm, you’ve had a look at the Page Builder settings correct? They can be found at: WP AdminSettingsPage Builder
Hi Alex,
Thanks for your interest.
I see, if you save WP Admin -> Settings -> Page Builder one time after then change functions.php code it’s not affects,
beacuse wp_options table -> siteorigin_panels_settings value not change with add_theme_support(‘siteorigin-panels’) action hook.
Thanks again, it’s work perfectly and now i can sleep :)