Change Genesis Theme Favicon In Functions.php

The default favicon of Genesis theme is eye-catching, sure, but if you’re sporting a customized theme, you might as well make a custom favicon for yourself as well, yeah? Lately I’ve been drawn to using the Genesis framework more and more, and changing the favicon is one of the first things I do when I get down to using it.

You could download any of the favicon uploader plugins in the WordPress repository and be done with it, but who wants the extra plugin when you can insert several lines of code in the functions.php file of your Genesis child theme so easily? Here’s the code I use:

// Loads favicon from specified URL
add_filter( 'genesis_pre_load_favicon', 'custom_favicon' );
function custom_favicon( $favicon) {
$favicon = 'YOUR FAVICON IMAGE PATH HERE';
return $favicon;
}

There ya go. Quick and painless.

SHARE THIS article
Facebook
Pinterest
Twitter
Print
Email

GET UPDATES

Sign up to my newsletter so you get first peek into my detailed reviews, latest updates and occasional fun emails.

Leave a Reply

Your email address will not be published. Required fields are marked *

STAY IN THE KNOW

Sign up to my newsletter so you get first peek into my new uploads, detailed reviews, latest updates and occasional fun emails.