Info: This function looks for a favicon. If it finds one, it will output the proper code in the
Since: 0.2.2
Function Contents:
$pre = apply_filters('genesis_pre_load_favicon', false); if ( $pre !== false ) $favicon = $pre; elseif ( file_exists(CHILD_DIR.'/images/favicon.ico') ) $favicon = CHILD_URL.'/images/favicon.ico'; elseif ( file_exists(CHILD_DIR.'/images/favicon.gif') ) $favicon = CHILD_URL.'/images/favicon.gif'; elseif ( file_exists(CHILD_DIR.'/images/favicon.png') ) $favicon = CHILD_URL.'/images/favicon.png'; elseif ( file_exists(CHILD_DIR.'/images/favicon.jpg') ) $favicon = CHILD_URL.'/images/favicon.jpg'; else $favicon = PARENT_URL.'/images/favicon.ico'; $favicon = apply_filters('genesis_favicon_url', $favicon); if ( $favicon ) echo '<link rel="Shortcut Icon" href="'. esc_url( $favicon ). '" type="image/x-icon" />'."\n";
Function Info: apply_filters()
Filter Info: genesis_pre_load_favicon
, genesis_favicon_url