Created
May 12, 2015 15:29
-
-
Save caseydriscoll/f79038c67e660c654482 to your computer and use it in GitHub Desktop.
Genesis Favicon
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
add_filter( 'genesis_pre_load_favicon', 'patchworks_custom_favicon' ); | |
/** | |
* Adds custom favicon from child theme directory | |
* | |
* @author caseypatrickdriscoll casey@patch.works | |
* | |
* @created 2015-05-12 11:28:06 | |
* | |
* @param string $favicon_url The location of the current favicon | |
* @return string The location of the new favicon | |
*/ | |
function patchworks_custom_favicon( $favicon_url ) { | |
return get_stylesheet_directory_uri() . '/img/favicon.png'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment