Skip to content

Commit

Permalink
Reconfigure header.php for better use of language_attributes()
Browse files Browse the repository at this point in the history
New detection for IE7/8/9 and better configure opening <head> tag
  • Loading branch information
Jonnyauk committed Sep 7, 2014
1 parent a2ee12c commit f3e7934
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,31 @@
*/

wf_output_start(); //WF display hook
echo '<head>';

?>

<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 9]>
<html class="ie ie9" <?php language_attributes(); ?>>
<![endif]-->
<!--[ if !(IE 7) | !(IE 8) | !(IE 9) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->

<head>
<?php
wf_head_meta();
wp_head();
echo '</head>';
?>
</head>

<?php

wf_after_head(); //WF display hook

echo "\n";
Expand Down

0 comments on commit f3e7934

Please sign in to comment.