Answers:
创建面板,然后将“节”放入这些面板中。
因此,如果您有小组讨论:
$wp_customize->add_panel( 'panel_id', array(
'priority' => 10,
'capability' => 'edit_theme_options',
'theme_supports' => '',
'title' => __('Theme Options', 'mytheme'),
'description' => __('Several settings pertaining my theme', 'mytheme'),
) );
然后,您需要添加部分:
$wp_customize->add_section( 'header_settings', array(
'priority' => 10,
'capability' => 'edit_theme_options',
'theme_supports' => '',
'title' => __('Header Settings', 'mytheme'),
'description' => __('Header elements configuration', 'mytheme'),
'panel' => 'panel_id',
) );
$wp_customize->add_section( 'footer_settings', array(
'priority' => 10,
'capability' => 'edit_theme_options',
'theme_supports' => '',
'title' => __('Footer Settings', 'mytheme'),
'description' => __('Footer elements configuration', 'mytheme'),
'panel' => 'panel_id',
) );
常规部分是“子”面板。然后,将您的设置添加到您的部分中,就可以完成。