Last active
October 30, 2017 21:05
-
-
Save billerickson/feb80f13b8a313d3ee48 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Add Favicon | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/multiple-sizes-favicon/ | |
*/ | |
function be_favicon() { | |
echo '<link rel="icon" href="' . get_stylesheet_directory_uri() . '/images/favicon-152.png">'; | |
echo '<!--[if IE]><link rel="shortcut icon" href="' . get_stylesheet_directory_uri() . '/images/favicon.ico"><![endif]-->'; | |
} | |
add_action( 'wp_head', 'be_favicon' ); | |
remove_action( 'wp_head', 'genesis_load_favicon' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment