Last active
August 29, 2015 14:11
-
-
Save schalkburger/88c4960bd6f064a19d39 to your computer and use it in GitHub Desktop.
Add favicon to Wordpress
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
function add_favicon() { ?> | |
<link rel="icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.ico" /> | |
<?php } | |
add_action('wp_head', 'add_favicon'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rel="shortcut icon" considered harmful - https://mathiasbynens.be/notes/rel-shortcut-icon