Skip to content

Instantly share code, notes, and snippets.

@caseydriscoll
Created May 12, 2015 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caseydriscoll/f79038c67e660c654482 to your computer and use it in GitHub Desktop.
Save caseydriscoll/f79038c67e660c654482 to your computer and use it in GitHub Desktop.
Genesis Favicon
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