/ Published in: PHP
HTML5 replacements for the doctype, etc. for WorPress themes. Add this code to your header.php file and you site will use HTML5. Be sure to double check the rest of your theme files for validation errors.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!DOCTYPE HTML> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo('charset'); ?>" /> <!--[if lt IE 9]> <script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <style type="text/css"> /* HTML5-specific CSS setup */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display:block } </style>