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.

Leave a Reply

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

ABOUT THE GIRL

I wear many hats. But most of all, I am

STAY CONNECTED

SUBSCRIBE FOR UPDATES

FACEBOOK HAPPENINGS