Last active
August 29, 2015 14:25
-
-
Save craigsimps/9ede8af25ed169c184dd to your computer and use it in GitHub Desktop.
Add a link to BrowseHappy to the header of your Genesis Child theme if the visitor is using Internet Explorer 8 or below.
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
add_action( 'genesis_before', 'craigsimps_browsehappy' ); | |
/** | |
* Show the browsehappy link | |
* if browser is less than IE8 | |
*/ | |
function craigsimps_browsehappy() { | |
?> | |
<!--[if lt IE 8]> | |
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> | |
<![endif]--> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment