• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Genesis Snippets

A reference for Genesis theme developers

  • Home
  • Archives
  • Search Genesis Snippets

Change or remove the default favicon

May 7, 2012 By David Wang

Changing the favicon for your Genesis child theme is easy. Simply replace the default favicon file at

wp-content/child-theme/images/favicon.ico

If you want to remove the favicon altogether, use this line of code in your functions.php:


/** Remove favicon */
remove_action('genesis_meta', 'genesis_load_favicon');

Credit: Jennifer Baumann

Filed Under: Genesis Tagged With: branding, favicon

Reader Interactions

Comments

  1. Dan Baritchi says

    January 6, 2013 at 6:23 am

    Hey David!
    I prefer to not delete the favicon file, as it’ll just get replaced next time the theme is updated…
    But more importantly, I’d like to be able to specify my own favicon. 🙂
    Is there a similar functions.php based approach for replacing the Genesis favicon with a favicon of your choice? 🙂
    Thanks!
    Dan

  2. david says

    January 6, 2013 at 8:25 am

    Hey Dan, you can always replace the `genesis_load_favicon` function with your own. So do something like (untested)

    function child_load_favicon() {
    	echo '<link rel="Shortcut Icon" href="' . get_stylesheet_directory_uri() . '/images/favicon.ico" type="image/x-icon" />'
    }
    
  3. Dan Baritchi says

    January 8, 2013 at 1:54 am

    Thanks David!

  4. Cindy says

    June 3, 2013 at 3:56 am

    Thanks! Finally got this working thanks to you!

Trackbacks

  1. Change the Favicon on my Genesis Child Theme says:
    June 3, 2013 at 5:11 am

    […] So, I searched for another solution to make SURE I had done it correctly.  I finally found this blog which gave the me answer I was looking […]

Primary Sidebar

Brought to you by ClickWP
Buy the Genesis Theme Framework

Who’s behind this?

Hi! I'm David and I'm a big Genesis fan. I've been using it in all my projects and have found it to be super powerful.

I started this site to keep track of all the snippets that I've been using in my projects and so that it's easy for me to find them again instead of digging through my old project files.

Help support this site by buying Genesis with our affiliate links. Thanks!

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 354 other subscribers

Browse Snippets

branding cache comments css custom post type doctype entry footer entry header favicon featured image genesis_custom_loop images internet explorer jetpack loop media menu metabox minify navigation oembed page layouts performance plugin integration post thumbnail shortcode sidebars theme options widget areas widgets WooCommerce WordPress
Everything you need to support your online business
Take WordPress further with the Genesis framework

Copyright © 2025 · Genesis Sample On Genesis Framework · WordPress · Log in