-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add section to the existing panel #99
Comments
Hi, Yes it's possible. for eg. Let's see this example: // Control core classes for avoid errors
if( class_exists( 'CSF' ) ) {
//
// Set a unique slug-like ID
$prefix = 'my_framework';
//
// Create customize options
CSF::createCustomizeOptions( $prefix );
//
// Create a section
CSF::createSection( $prefix, array(
'assign' => 'title_tagline', // the exists panel id
'fields' => array(
//
// A text field
array(
'id' => 'opt-text-1',
'type' => 'text',
'title' => 'Text 1',
),
)
) );
//
// Create a section
CSF::createSection( $prefix, array(
'assign' => 'static_front_page', // the exists panel id
'fields' => array(
//
// A text field
array(
'id' => 'opt-text-2',
'type' => 'text',
'title' => 'Text 2',
),
)
) );
} As you see there is a "assign" parameter. It's allow to add custom field to exists panels. Btw, WooCommerce section id's: 'assign' => 'woocommerce_store_notice',
'assign' => 'woocommerce_product_catalog',
'assign' => 'woo-shop-single',
'assign' => 'woocommerce_product_images',
'assign' => 'woo-shop-cart',
'assign' => 'woocommerce_checkout', Regards, Codestar |
Hello, |
Ok, I added.
But I am wonder is I can create the section and add it to the 'panel' => 'woocommerce' using Codestar Framework. Thanks |
Unfortunately, that's not possible. maybe it can be possible in the next updates. |
Hello,
is it possible to add section to the existing panel in the Customizer that was already defined by default in WP theme?
For example those sections come from the Woocommerce and I want to add my additional section there.
Thank you.
The text was updated successfully, but these errors were encountered: