How to use this theme most effectively, and how to collaborate with me on it. ##Dependencies
##Modifying this theme's PHP
- Make changes locally then upload them to the server, or make changes on the server and download the file.
- Commit the changes in Git and sync.
- I'll get a notification that you've committed a change and I'll pull that change.
- Open Terminal
- type
gem update --system
and hit enter - type
gem install compass
and hit enter. These commands update Ruby, which is similar to PHP in that it's a scripting/programming language that comes installed on with OS X, and then they install the Compass "plugin" (called a gem in Ruby).
DON'T CHANGE STYLE.CSS. If you do, your change will vanish into thin air next time I update the CSS.
- Take 5 minutes and look over this tutorial focusing on the
scss
syntax examples. A lot of what you see will remind you of PHP. - open Terminal and type
compass watch ~/path/to/themeRoot
which in my case is~/Sites/wordpress/wp-content/themes/ThinkingChristian
- Change the
.scss
files in thesass
directory. The CSS will update automatically, or Compass will give you an error. - If you want to change something that is somewhat global, look in
_vars.scss
file or_normalize.scss
for a variable controlling what you want to change. Ask me about anything confusing.