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

CSS and wordpress

Hi

Is the CSS foundation course available here in Treehouse is enough to play with the CSS of Worpress or are there more advanced CSS in Wordpress?

6 Answers

Kevin Korte
Kevin Korte
28,149 Points

css isn't tied to wordpress. It would be enough to get you going with wordpress though.

How comes? How WordPress controls its presentation then without CSS?

Kevin Korte
Kevin Korte
28,149 Points

No every webpage is/should be using CSS. What I meant was is that CSS in wordpress is not different/special or unique to CSS of a non-wordpress site. Is that more clear?

And I think the CSS lessons here are some of the most complete and through of the bunch.

Yes I got it. But What I was asking whether the CSS selectors available at CSS course here will cover all the selectors in WordPress themes or will I find CSS selectors in WordPress that were not mentioned here?

Suli, the post_class and body_class functions in WordPress will give you a pile of classes that will make it easier to manipulate with css. Inspect element on any WordPress site and you'll find all kinds of extra classes all over the place. The selectors and properties available in CSS aren't affected by WordPress.

Kevin Korte
Kevin Korte
28,149 Points

I'll add to what Chris said, my favorite too right now to inspect code is the Firebug add-on in Firefox browsers. Super easy and convenient.

Kevin Korte
Kevin Korte
28,149 Points

It should cover them all yes.

How did you know? Did you have a loot at WordPress CSS before? :)

Kevin Korte
Kevin Korte
28,149 Points

I've been through the CSS here and I am developing multiple wordpress sites right now.

Thanks Kevin. let us see some of your works:)

If you want to learn about CSS in CMS systems, you simply need to learn and apply CSS best practices. You'd be best to start with something like OOCSS to learn how to properly compartmentalize your CSS code.

http://teamtreehouse.com/library/treehouse-workshops/css-best-practices http://coding.smashingmagazine.com/2011/12/12/an-introduction-to-object-oriented-css-oocss/

Kevin Korte
Kevin Korte
28,149 Points

Here is a wordpress site I'm developing for a friend who owns a gym. The logo I did not design, that is his. But I thought this is a good example of what CSS can do. Multiple backgrounds, repeating patterns, gradients, thick border with different colors, etc.

screen shot

Good work.

By the way, How did you learn to make WordPress themes?

The codex is your best friend.

If you're looking for a book, this one is the best: http://amzn.to/1fv5ygf