Last active
August 4, 2018 08:49
-
-
Save deeman/c45155f8b19606572af6308885794bc3 to your computer and use it in GitHub Desktop.
Custom Favicon in Genesis Framework
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
<?php | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
//* Display a custom favicon | |
add_filter( 'genesis_pre_load_favicon', 'sp_favicon_filter' ); | |
function sp_favicon_filter( $favicon_url ) { | |
//return 'http://www.mydomain.com/wp-content/themes/genesis-childtheme/images/favicon.ico'; | |
//favicon via image-url(SSL/HTTPS). | |
return 'https://cdn4.iconfinder.com/data/icons/geomicons/32/672410-skull-16.png'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment