How to Include HTML Shiv Properly

I stumbled upon an HTML5 Internet Explorer shiv issue today. It seems that the WordPress TwentyEleven theme was not including the html5 shiv script properly at some point in the past. I discovered this when a forked TwentyEleven theme started throwing weird “shiv”-related text at the top of my pages.

To solve the problem, I simply copy-and-pasted the following script into my header, while removing the old code:


(source)

Posted in ,

Toby Cryns

Toby Cryns is a freelance CTO, expert WordPress developer, and teacher.

He offers free advice to improve your freelance biz.

He also publishes small droppings every now and them to https://twitter.com/tobycryns and https://twitter.com/themightymo.com

Follow Toby's contributions on Github and WP.org.