Skip to content

Instantly share code, notes, and snippets.

@craigsimps
Last active August 29, 2015 14:25
Show Gist options
  • Save craigsimps/9ede8af25ed169c184dd to your computer and use it in GitHub Desktop.
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.
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