• Resolved OfficialKHAN

    (@officialkhan)


    Hi,

    I am creating a custom theme. In my Theme folder i have a functions.php, reset.css and a style.css.

    I would liked to apply my reset styling before my style.css. e.g. i want to add multiple style sheets. Here is my function which goes inside the functions.php.

    function style_resources() {
    
        wp_enqueue_style('reset', get_stylesheet_uri());
        wp_enqueue_style('style', get_stylesheet_uri());
    }
    add_action('wp_enqueue_scripts', 'style_resources');

    The style.css takes effect, but the reset.css does not take effect. Could someone tell me why?

Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Adding Multiple Style Sheets To Custom Theme’ is closed to new replies.