Output custom added customizer CSS as inline style
Question
I’ve added custom CSS panel to my customizer to output it after my theme style as inline style. Here is my customizer code –
$wp_customize->add_section(
'critical_css',
array(
'title' => '',
'capability' => 'manage_options'
)
);
$wp_customize->add_setting(
'critical_inline_css',
array(
'type' => 'option',
)
);
$control = $wp_customize->add_control(
new WP_Customize_Code_Editor_Control(
$wp_customize,
'critical_css_editor',
array(
'label' => '',
'section' => 'critical_css',
'settings' => 'critical_inline_css',
'code_type' => 'text/css'
),
)
)
);
How can I output the customizer CSS after my main style with wp_add_inline_style
(MUST!) function?
0
css, theme-customizer
7 months
0 Answers
76 views
0
Leave an answer
You must login or register to add a new answer .