Customized CSS is a function since 4.7
Simply select the Extra CSS tab when customizing your present theme to get began!
The issue is {that a} theme developed some time again doesn’t present the Extra CSS tab.
I occurred to be utilizing twentythirteen as a base for an additional mission, and there it’s, nothing wherever within the features.php is enabling it, it simply works.
Anybody have any thought about the way to allow it?
Whereas I can use the next:
$wp_customize->add_setting( 'custom_theme_css', array(
) );
$wp_customize->add_control( 'custom_theme_css', array(
'label' => __( 'Customized Theme CSS' ),
'sort' => 'textarea',
'part' => 'custom_css',
) );
$wp_customize->add_section( 'custom_css', array(
'title' => __( 'Customized CSS' ),
'description' => __( 'Add {custom} CSS right here' ),
'panel' => '', // Not sometimes wanted.
'precedence' => 160,
'functionality' => 'edit_theme_options',
'theme_supports' => '', // Not often wanted.
) );
I’m primarily creating a brand new setting, moderately than utilizing the brand new core function.
I need to allow the core, one thing like $wp_customize->add_section('custom_css');