Use these methods to overwrite existing stylesheets and you no longer have to use !important for your sections.

Header Scripts

add_action('wp_enqueue_scripts', function () {
    wp_enqueue_style('new', 'css/new.css', ['old'], false);
}, 99);

Footer Scripts

add_action('get_footer', function () {
    wp_enqueue_style('new', 'css/new.css', ['old'], false);
}, 99);

Leave a Reply

Your email address will not be published. Required fields are marked *