Genesis Tutorials

Tips, Tricks, and How-tos for the Genesis Theme Framework

  • The Genesis Developer’s HandbookVisual Hook Guide
  • code, settings & options oh my!Resources
    • Collection Of CodeSnippets
    • Under ConstructionGenesis Functions
    • Coming Soon…Utilizing Genesis SEO Options
  • Extend GenesisPlug-ins
    • Genesis Post Teasers
    • Genesis Favicon Uploader
  • Genesis Child ThemesThemes
  • What is genesistutorials.com?About
    • Genesis Tutorials Roadmap
You are here: Home / Snippets / Change the favicon.ico Path

Change the favicon.ico Path

December 2, 2010 by 2 Comments

add_filter('genesis_favicon_url', 'custom_favicon_url');
function custom_favicon_url() {
	$favicon =  site_url("favicon.ico");
	return $favicon;
}

Function Info: add_filter(), site_url(), genesis_load_favicon()
Function Info: genesis_favicon_url

Comments

  1. Jon Breitenbucher says

    December 4, 2010 at 12:42 am

    I’m looking for a way to allow users to upload their custom icon when using Genesis and associated child themes in a multisite setting. Would you want to use home_url(“/files/favicon.ico”) if in a multisite setting? I guess it would depend on whether your upload settings organized by month and year. I’m not sure you can put a function like this in a child theme and guarantee that all the sites would be using the same upload structure.

    Reply
    • Christopher says

      December 4, 2010 at 3:55 am

      I’m actually pushing out an update on Monday to my Genesis Favicon Uploader that supports MS. The next realease will also be in the repo. I’ll surely email you when it comes available. Current plug-in can be found under Plug-ins tab in the main navigation.

      (I’m currently out so can’t provide a snippet for you but thought I’d just let you know something is in the works. )

      Reply

Leave a Reply Cancel reply

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

Genesis Framework for WordPress

Subscribe to Blog via Email

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

Genesis Guide for Absolute Beginners

Click to download the Genesis Guide for Absolute Beginners

Follow me on Twitter

Follow @tweetsfromchris

Recent tutorials

Genesis 3.0.0 Removed Deprecated Functions

How to Add a Logo to the Header

Say Hello to the Genesis Visual Hook Guide v2.5

Genesis Tutorials • Built on the Genesis Theme Framework

Genesis Tutorials is not affiliated with StudioPress, and is maintained and operated by Christopher Cochran.