How to Add a Custom Favicon in Genesis Theme?

Genesis Framework : In this tutorial, you’ll learn how to Display a Custom Favicon in Genesis. The Genesis Framework empowers you to quickly and easily build incredible websites with WordPress. Whether you’re a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. In Genesis powered websites you’ve to modify the child theme which is running on.

These code snippets will help you to Display a Custom Favicon with the Genesis Framework.

Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.

Add a Custom Favicon in Genesis


Below is the code to Display a Custom Favicon:

//* Do NOT include the opening php tag
//* Display a custom favicon
add_filter( 'genesis_pre_load_favicon', 'sp_favicon_filter' );
function sp_favicon_filter( $favicon_url ) {
return 'https://www.mydomain.com/wp-content/images/favicon.ico';
}

Final Words

I strongly recommended to take backup core files before customizing any Genesis Child Theme. Hope the above Genesis Tutorial was helpful and valued for you. Please don’t forget to share this with social friends and write a comment below if you need any assistance in customizing the look of your WordPress websites.


Editorial Note: When you buy through links on our site, we may earn an affiliate commission. Commissions do not affect our writers' opinions or evaluations.