add_theme_support bug
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.
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
2Hi 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 :)
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.