Add Favicon (logo) To Wordpress Site

by Oscar

You need to create a image file that has a ‘.ico’ extension, dimension 16px X 16px.
You can use Photoshop for this, but I use Gimp, which is free. (note: windows Paint doesn’t support this format)

Some of the links on this page are affiliate links. I receive a commission (at no extra cost to you) if you make a purchase after clicking on one of these affiliate links. This helps support the free content for the community on this website. Please read our Affiliate Link Policy for more information.

then upload it to your theme image folder.

Modify the theme name in the path to the one you are using, and copy it to the header.php file.

[sourcecode language=”html”]

<link rel="shortcut icon" href="<?php echo home_url( ‘/ctt/themes/twentyeleven/images/favicon.ico’ );?>" type="image/vnd.microsoft.icon"/>
<link rel="icon" href="<?php echo home_url( ‘/ctt/themes/twentyeleven/images/favicon.ico’ );?>" type="image/x-ico"/>

[/sourcecode]

Leave a Comment

By using this form, you agree with the storage and handling of your data by this website. Note that all comments are held for moderation before appearing.