Sip icon indicating copy to clipboard operation
Sip copied to clipboard

Theme style.css not propagating

Open antonioOrtiz opened this issue 10 years ago • 1 comments

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.

antonioOrtiz avatar Oct 22 '15 00:10 antonioOrtiz

I don't see anything in the theme files that supports adding theme information, so I made the following modifications:

  • Change the gulp.dest in the scss action 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.php to 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.

bstaruk avatar Dec 02 '15 16:12 bstaruk