Class styles generated by Word Press

As we learned in Chapter 3, WordPress content is generated mostly by those bits of PHP code known as template tags, which look like have_posts or the_category, and so on.

Until recently, WordPress template tags did not output many CSS styles. In Chapter 3, we used the wp_list_pages tag and learned it output a few classes that could be used to style menu items. With the release of 2.7 and now 2.8, we have a few new template tag functions that output quite a few class styles.

What I find particularly nice about WordPress' class styles is they're descriptive and useful and if you choose, optional. I would recommend that you do leverage them and be sure you account for them in your theme's style sheet.

Styling tip

Remember, you can set CSS styling rules not only for CSS classes such as .classname, but also for XHTML markup objects such as h2, li, p, div, form, and so on, and for IDs such as #idname. In targeting objects, classes, and IDs you have quite a bit of power in controlling your theme's layout!

Instant Ways To Monetize Your Blog

Instant Ways To Monetize Your Blog

Get Paid For What You’re Worth. Benefit From Your Talent. Get Your Due Credit. Provide Your Skills A Platform To Shine. Enhance Your Opportunities. Learn how to monetize your blog and reap the rewards of your skills.

Get My Free Ebook


Post a comment