admin管理员组

文章数量:1323716

Is it possible that additional CSS that we add in customizer section, display somewhere else instead of head? I am using twenty-seventy theme. I know its fetch and rendering code is available in wp-include/theme.php something like this

function wp_custom_css_cb() {
    $styles = wp_get_custom_css();
    if ( $styles || is_customize_preview() ) :
        $type_attr = current_theme_supports( 'html5', 'style' ) ? '' : ' type="text/css"';
        ?>
        <style<?php echo $type_attr; ?> id="wp-custom-css">
            <?php echo strip_tags( $styles ); // Note that esc_html() cannot be used because `div &gt; span` is not interpreted properly. ?>
        </style>
        <?php
    endif;
}

But i wish i remove this from head and add in some other separate file.

本文标签: plugin developmentTwentyseventy theme remove additional CSS from head