[TriLUG] Help! Wordpress CSS issue

Igor Partola igor at igorpartola.com
Fri Aug 30 14:26:01 EDT 2013


SASS (http://sass-lang.com/) is compiled down to CSS. You would need
something like http://wordpress.org/plugins/wordpress-sass/ to get CSS to
be compiled on the fly. Otherwise, you could just compile SASS to CSS
whenever you make changes and just install the CSS files into your
WordPress theme.

The former is easier: whenever you change your SASS files your CSS files
are re-generated on the next page load. This has two gotchas:

1. You have to reload an HTML page, NOT the .css file to trigger the CSS
regeneration.

2. If you have a syntax error in one of your SASS rules, the whole page
will fail to load. This is unlike a syntax error in a CSS file where the
browser is going to try it darnest to still use most of the stylesheet.
Don't make syntax errors.

Hope that helps.

Igor


More information about the TriLUG mailing list