Sometimes you may find yourself needing to style a particular post differently, based on the category that it’s in. Here’s a little function that will add each of a post’s categories to the body class of the single post page (assuming your theme uses the body_class template tag):
Recently I was testing out browser compatibility on a WordPress theme which I’m building. Since I do my development on a Mac, I was running Windows in a virtual machine. I have a web server installed locally on my Mac, which I can access from my windows VM. The problem was that Internet Explorer 9 kept insisting on rendering the site in IE7 compatibility view mode. I could use IE9’s developer tools to switch the rendering mode back to IE9, but whenever I would close the browser and reopen it, the page would be in rendered in IE7 mode again. And I’m using a valid HTML5 doctype, so I knew that wasn’t the cause of the problem. Continue reading
I’ve updated the Responsive Image Maps WordPress plugin to version 1.1. At the end of the development of 1.0, when I replaced the development version of the jQuery RWD Image Maps plugin with the minimized version of it, I forgot to update the path in the WP plugin code. Stupid mistake. Anyway, it’s fixed now.