Created
May 15, 2015 01:27
-
-
Save pasadamedia/2a7c433b6f4aa17cdab1 to your computer and use it in GitHub Desktop.
Override default favicon in Genesis child theme with custom retina-friendly versions from realfavicongenerator.net.
This file contains hidden or 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 favicons (created at http://realfavicongenerator.net/) | |
remove_action( 'wp_head', 'genesis_load_favicon' ); | |
add_action( 'wp_head', 'pasada_load_favicon' ); | |
function pasada_load_favicon() { | |
echo '<link rel="apple-touch-icon" sizes="57x57" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-57x57.png">'; | |
echo '<link rel="apple-touch-icon" sizes="60x60" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-60x60.png">'; | |
echo '<link rel="apple-touch-icon" sizes="72x72" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-72x72.png">'; | |
echo '<link rel="apple-touch-icon" sizes="76x76" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-76x76.png">'; | |
echo '<link rel="apple-touch-icon" sizes="114x114" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-114x114.png">'; | |
echo '<link rel="apple-touch-icon" sizes="120x120" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-120x120.png">'; | |
echo '<link rel="apple-touch-icon" sizes="144x144" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-144x144.png">'; | |
echo '<link rel="apple-touch-icon" sizes="152x152" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-152x152.png">'; | |
echo '<link rel="apple-touch-icon" sizes="180x180" href="/wp-content/themes/pasada/images/favicon.ico/apple-touch-icon-180x180.png">'; | |
echo '<link rel="icon" type="image/png" href="/wp-content/themes/pasada/images/favicon.ico/favicon-32x32.png" sizes="32x32">'; | |
echo '<link rel="icon" type="image/png" href="/wp-content/themes/pasada/images/favicon.ico/favicon-194x194.png" sizes="194x194">'; | |
echo '<link rel="icon" type="image/png" href="/wp-content/themes/pasada/images/favicon.ico/favicon-96x96.png" sizes="96x96">'; | |
echo '<link rel="icon" type="image/png" href="/wp-content/themes/pasada/images/favicon.ico/android-chrome-192x192.png" sizes="192x192">'; | |
echo '<link rel="icon" type="image/png" href="/wp-content/themes/pasada/images/favicon.ico/favicon-16x16.png" sizes="16x16">'; | |
echo '<link rel="manifest" href="/wp-content/themes/pasada/images/favicon.ico/manifest.json">'; | |
echo '<link rel="shortcut icon" href="/wp-content/themes/pasada/images/favicon.ico/favicon.ico">'; | |
echo '<meta name="msapplication-TileColor" content="#da532c">'; | |
echo '<meta name="msapplication-TileImage" content="/wp-content/themes/pasada/images/favicon.ico/mstile-144x144.png">'; | |
echo '<meta name="msapplication-config" content="/wp-content/themes/pasada/images/favicon.ico/browserconfig.xml">'; | |
echo '<meta name="theme-color" content="#ffffff">'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment