A Northern KY Blog Aggregator | Using a Specific Favicon Per Wordpress Theme

Using a Specific Favicon Per Wordpress Theme

Posted on October 17, 2008
Filed Under Justin Rains |

Using a Specific Favicon Per Wordpress Theme

I really like using the favicon. Favicons are great for branding purposes as they show up as a graphic in the URL bar and also when a page is bookmarked. While themes do not change much in Wordpress I thought it would be nice to have a favicon that is specific for that theme. If I switch themes the new theme will need a favicon or nothing (or maybe the default favicon I haven’t tried that) will be shown. First create your 16×16 pixel favicon as described in this post and upload the file called favicon.ico to your BLOG/wp-content/themes/THEMENAME/images directory. Next up in the wordpress admin (or shell or text editor) open up the themes header.php file. Add this one line:


<link rel="shortcut icon" href="/images/favicon.ico” />

You will then see your favicon in your browser window ONLY when browsing your site. Not in the wp-admin area because your theme is not being used in the admin area.

What do you think? Sure this is extra work as you could simply put this in the root folder but the geek in me likes the control. This could also be useful for distributing a free wordpress theme and branding.

Continue reading Using a Specific Favicon Per Wordpress Theme

Comments

Leave a Reply