This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

add_theme_support bug

10 years ago · Last reply by Semih Memiş 10 years ago

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

2
  1. Alex S Staff 10 years, 12 days ago

    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. Semih Memiş 10 years, 10 days ago

    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.

Have a different question or issue?

Start New Thread