Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

WordPress theme development workflow with SASS

Hi all,

I've been developing custom WordPress themes for a few years now but due to the workload I got behind on some of the modern workflow tools and am currently learning and catching up.

Recently I learned how to use GIT and SASS and now I'm implementing this in my workflow but some things aren't really clear to me.

I always used to develop the front-end first and then implement it in my WordPress theme. I'm guessing it would be faster to start the front-end development right in the WordPress theme itself instead of seperately? So that means I can write the HTML and PHP while writing my CSS and JS right in the theme instead of doing the HTML and CSS first and then making everything flexible with WordPress fields?

Another thing I'm confused about is the SASS file structure. Do you keep all your SASS files in the theme directory or do you build a dist version of your project and only include the final style.css? If you only keep the final CSS file, where do you store your SASS files (thinking about version control and backups of the original files).

Been reading alot online but can't seem to find real examples of how the above are integrated in WordPress theme development.

Thanks!

Michael Hulet
Michael Hulet
47,912 Points

I have a lot of regular website experience, but I recently picked up a contract to build and maintain a WordPress site (my first time working with WordPress), and I have a lot of the same questions. I'm interested in hearing answers to them, too