the favicon image MUST be named "favicon.ico"...
This commit is contained in:
		
							parent
							
								
									c173e4943c
								
							
						
					
					
						commit
						0c5cb9b390
					
				| @ -9,10 +9,11 @@ Author URI: http://www.nowhereland.it/ | |||||||
| */  | */  | ||||||
|   |   | ||||||
| function plugin_favicon_head() { | function plugin_favicon_head() { | ||||||
| 	// your file *must* be named favicon.ext, 
 | 	// your file *must* be named favicon.ico 
 | ||||||
| 	// where ext is an image extension (such as gif, png, ico...)
 | 	// and be a ICO file (not a renamed png, jpg, gif, etc...)
 | ||||||
|  | 	// or it won't work in IE
 | ||||||
| 	echo '<link rel="shortcut icon" href="' .   | 	echo '<link rel="shortcut icon" href="' .   | ||||||
| 		plugin_geturl('favicon') .'imgs/favicon.gif" />'; | 		plugin_geturl('favicon') .'imgs/favicon.ico" />'; | ||||||
| } | } | ||||||
|   |   | ||||||
| add_action('wp_head', 'plugin_favicon_head'); | add_action('wp_head', 'plugin_favicon_head'); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 real_nowhereman
						real_nowhereman