Created
August 23, 2013 17:06
-
-
Save brycejacobson/6321669 to your computer and use it in GitHub Desktop.
Add Conditional Classes to the HTML Tag in Genesis 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Do NOT include the opening php tag | |
//* Remove the default Genesis doctype, add new html5 doctype with IE8 detection | |
function mb_html5_doctype() { | |
?> | |
<!DOCTYPE html> | |
<!--[if IE 8]> <html class="lt-ie9" <?php language_attributes( 'html' ); ?>> <![endif]--> | |
<!--[if gt IE 8]><!--> <html <?php language_attributes( 'html' ); ?>> <!--<![endif]--> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>" /> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment