Cannot add further CSS rules to WordPress style.css

I am working on creating my first custom theme in underscores.

My issue is I can no longer add styles to style.css.
I can edit existing style rules in there, or add to classes that already exist.

Read More

But for any new styles I am inserting for new pages and so forth, I am forced to add to a new CSS I made and called ‘custom.css’.

I created this to add styles to bootstrap.

When I view source ‘style.css’ is loading above ‘custom.css’ on pages.

And yet, when I add new styles to style.css it changes nothing on page.

Anyone know why this could be occuring?

Related posts

1 comment

  1. I think your css file is too long. Add your _s code to the file _s.css and start the style.css file with:

    /*
    Theme Name: mytheme
    Author: myname
    Author URI: myurl
    Version: 1.0.0
    Text Domain: mythemename
    */
    
    @import url('_s.css')
    

Comments are closed.