body_class()

WordPress body_class() Adds Browser-Specific Classes! WOW!

By / July 18, 2009 / Comments Off on WordPress body_class() Adds Browser-Specific Classes! WOW!

A common problem amongst website developers is the “IE Sucks” problem.  That is, different browsers (I’m  looking at you, Internet Explorer) process CSS differently.  One way to get around these issues is to use a combination of javaScript and CSS to address the issue.  In the past, I have used this “CSS Browser” script to…

Read More

body_class() in WordPress 2.8: Custom CSS for EVERY Page

By / June 14, 2009 / Comments Off on body_class() in WordPress 2.8: Custom CSS for EVERY Page

I worked on a project about 6 months ago that needed a custom CSS id for each page of the website. Basically, each page needed the main drop-down menu styled specifically for that page. WordPress 2.8 supports that feature out of the box! *and there was much rejoicing*

Read More