Theme style.css not propagating
Thanks for making a cool build tool.
It appears though, the style.css is not connecting to the index.php is there something I am missing? Do you have to configure that as well? As a background, I am trying to get started pretty quickly and just wanted to see what the theme was like. All I have changed was the proxy: property in the server task.
I don't see anything in the theme files that supports adding theme information, so I made the following modifications:
- Change the
gulp.destin thescssaction as such:
From: .pipe( gulp.dest( '.' ) )
To: .pipe( gulp.dest( 'css' ) )
This changes the gulp scss process to put the styles into css/style.css instead of style.css. The purpose of this is to free up the root style.css so we can add theme information.
- Change the style enqueue in
functions.phpto the new stylesheet as such:
From: wp_enqueue_style( 'sip-style', get_stylesheet_uri() );
To: wp_enqueue_style( 'sip-style', get_template_directory_uri() . '/css/style.css' );
Now, your site will use the new css/style.css stylesheet, and you can nuke the root style.css to your liking (delete all the old style, so all that remains will be your theme info).
@tomazzaman - I could submit a pull request for this, if you'd like.