Skip to content

Instantly share code, notes, and snippets.

@scottnix
Created May 10, 2014 18:00
Show Gist options
  • Save scottnix/ab2f48885670b99af910 to your computer and use it in GitHub Desktop.
Save scottnix/ab2f48885670b99af910 to your computer and use it in GitHub Desktop.
Thematic Theme Comprehensive Favicons
// reference: http://scottnix.com/2014-thematic-child-theme/#comment-53413
function childtheme_add_favicon() { ?>
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="/apple-touch-icon-152x152-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="/apple-touch-icon-120x120-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="/apple-touch-icon-76x76-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-precomposed.png">
<link rel="icon" sizes="196x196" href="/apple-touch-icon.png">
<?php }
add_action('wp_head', 'childtheme_add_favicon');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment