Keep reset style sheet in a separate file

So we all know CSS resets are great and wise to have. However these reset style sheets can be quite long and I do not want to keep the reset styles in my main style.css file. Rather I would like to have a separate reset style sheet file.

How can this be done with WordPress using functions?

Read More

So far I have just included @import url('layouts/normalize.css'); in my styles.css and this works, but I do not know if this is the best approach.

FYI I am using a _s based theme.

Related posts

1 comment

  1. Reference is here.

    UPDATE

    With right (template) URI:

    wp_enqueue_style('resetCss', get_template_directory_uri() . '/layouts/normalize.css');
    

    You can add this code to your function.php or any init hook / action.

Comments are closed.