Skip to content

@bgardner /functions.php
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Load a custom favicon on your site using the Genesis Framework.
<?php
//* Do NOT include the opening php tag
//* Load custom favicon
add_filter( 'genesis_pre_load_favicon', 'custom_favicon_filter' );
function custom_favicon_filter( $favicon_url ) {
return 'http://www.mydomain.com/wp-content/images/favicon.ico';
}
@contentJones

I kept having to update this for dev environments so now use...

return get_bloginfo('stylesheet_directory').'/images/favicon.png';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.