Home>Support>add_theme_support bug

add_theme_support bug

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.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 3 months ago Alex S
    Hi, I Work Here

    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

  2. 9 years, 3 months ago Semih Memiş

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More