Archive for the ‘Web Development’ Category

Next Page »« Previous Page

WordPress 3.2.1 — body class changes

Friday, July 15th, 2011

WordPress developers take note — somewhere between version 3.1.3 and version 3.2.1 there is a change related to custom themes and body classes that might break your CSS in some certain scenarios.

If you have custom templates with underscores in their names, updating to WordPress 3.2.1 can break your CSS. For example a template file called “template-my_custom_template.php” used to produce body class names *without* underscores prior to verison 3.2.1

<body class="template-mycustomtemplate">

As of version 3.2.1 that body class is now generated with the underscores in place:

<body class="template-my_custom_template">

This is actually the way it should have always been, but can cause havoc if you’ve got any CSS rules that use the old model.

Pitfalls of styling the HTML element

Wednesday, April 13th, 2011

This was fun painful.

On the new ablesense.com website design, I had foolishly applied some styles to the <html> element — specifically my font stack for the website. The particular selection of fonts was very important in making this mistake obscure:

html { font-family: helvetica, arial, sans-serif; }

Browsers have default fonts

The fonts all looked fine in Firefox, Safari, Chrome, and Internet Explorer (Helvetica on Mac, and Arial on PC). This lines up with the CSS rule above, so it seemed like everything was fine — but it was not. (more…)

Misleading Analytics Sure Feel Good

Wednesday, March 30th, 2011

According to Google Analytics, one of the websites I’m involved with has a 105,200.00% increase in visits. I imagine the meeting at Google went something like this:

Q: Should we just leave % Change blank until after 30 days of data?
A: Nah, it will make people feel good to see a really huge, albeit inaccurate number for the first month. (more…)

Next Page »« Previous Page