Skip to content

Instantly share code, notes, and snippets.

@frasten
Created June 7, 2010 19:09
Show Gist options
  • Save frasten/429044 to your computer and use it in GitHub Desktop.
Save frasten/429044 to your computer and use it in GitHub Desktop.
Mystique theme for wordpress: adds a filter to choose a custom favicon.
--- ./header.php 2010-06-07 20:59:51.870570644 +0200
+++ ./header.php 2010-06-07 21:07:55.069569957 +0200
@@ -16,7 +16,7 @@
<?php endif; ?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
-<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
+<link rel="shortcut icon" href="<?php echo apply_filters( 'mystique_favicon', get_bloginfo('template_directory') . '/favicon.ico' ); ?>" />
<?php wp_head(); ?>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment