Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Add a Favicon to Your WordPress Blog

Last updated on by
Follow WPBeginner on YouTube
How to Add a Favicon to Your WordPress Blog

Favicon is the tiny image that appear next to your website title in the browser. It helps your users identify your website and more frequent visitors of your site will build an instant recognition for that tiny image. This increases your brand recognition and helps you build trust among your audiences. Recently in our article about most common WordPress mistakes, not adding a favicon was among the top 25. In this article, we will show you how to add a favicon to your WordPress blog.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

Why you should Add a Favicon to Your WordPress Site?

As we mentioned earlier that it establishes your website’s identity. However, it also improves your site’s usability and user experience. This image will help you understand it better:

Favicons in Browser Tabs

Most users usually have many tabs open in their browser window. This hides your website’s title as the number of tabs increase. The favicon helps user identify your website and quickly switch to the tab they want.

How to Create a Favicon

A favicon is a simple square image. Ideally, it can be 32×32 pixels or a 16×16 pixels image. Open Photoshop or another image editor and create a square image of 128×128 pixels so that you can easily work on the image. Once you have created the image you can resize it into a 32×32 pixels and save it as a PNG file.

Even though most modern browsers will display a favicon in PNG format, older versions of Internet Explorer will not. To make sure that your favicon is displayed in most browsers and devices it is recommended that you convert it to a 16×16 pixels .ico file. To convert a PNG file into .ico you can use Dynamic Drive’s favicon generator.

Adding Favicon to WordPress Site

Upload your favicon to your website’s root directory using FTP. After that you can simply paste this code into your theme’s header.php file.

<link rel="icon" href="" type="image/x-icon" />
<link rel="shortcut icon" href="" type="image/x-icon" />

Replace with your site’s URL and you are good to go. If your theme does not have a header.php file, or you can not find it, then don’t worry we have a plugin for you. Install and activate Insert Headers and Footers plugin. After activating the plugin go to Settings » Insert Headers and Footers and paste the code provided above in the header section and save your settings.

If you don’t want to deal with FTP at all, then you can also use the plugin called All in One Favicon.

We hope that this article helped you add favicon to your WordPress site. For questions and feedback you can leave a comment below or catch us on Twitter.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Dave says:

    Thanks! Worked great.

  2. Arsh says:

    Thank you !

  3. Nikki says:

    I am so glad to have stumbled upon your article. I had quit trying to figure out how to upload my favicon in the past because it felt impossible. But recently, I felt the need to take another stab at it. You made it so easy! I can’t recall it being this easy to upload before.

    Thank you!

  4. Ruby Dawnbrooke says:


    I have a question, recently, I’ve used the plugin All in One Favicon. I uploaded my picture but it doesn’t show up if I’m not logged into WordPress, it just keeps on showing the HostGator favicon (regular), can anyone help?

  5. bg says:

    Here’s a stupid question: Why do they make it so complicated? This should be something that you can do in a couple clicks, like adding an image to a blog post.

    • WPBeginner Support says:

      Actually, there is a feature currently in testing which will allow users to add favicon from theme customizer.

  6. dzaken says:

    thankyou so much, easer way to make it. love it :)

  7. Bert Rinkel says:

    I have a logo which I want to use. Is that possible? It is not in a square format at this point, but can be. How do I do that? Can I “create” one in iPhoto (on a Mac)? Where would I do that in iPhoto, and how? I have one on my dashboard now. Can I drag that somewhere? How do I save it as a PNG file? Where do I do that?

    This is a nice general site to understand what a favicon is, but not on how to do it.

    • Mike says:

      Hi Bert, I’m still feeling my way around this process myself but I am ok up to the point you are trying to reach. Creating your own or editing an existing logo to make it fit can be done in a program like Photoshop. Remember to go to New file, and set the size to 16×16 pixels. Import your image to this and reduce it to fit. If you don’t have Photoshop or any other image editing software you can go to where the instructions are easy to follow. I’m sure it doesn’t necessarily have to be a PNG file. But it does have to be an .icon which the Favicon site will convert for you from the original .jpeg you uploaded. Because I have Photoshop when I clicked on the Edit button in iPhoto it automatically opened Photoshop. See what it does when you do it on your system. It may open an alternative editing method. Hope that helps. I know what it’s like as a beginner.

  8. chukwubueze says:

    Thanks man.. your site has been useful to me and also your videos on youtube. am still working on my site.. you can have a look.

  9. vinayak says:

    Can i add Meta description and meta keyword for my site using this plugin.

  10. 4ryan says:

    what is this apple touch icon???

  11. 4ryan says:

    thanks this is what i am looking for, but how can i add site logo. has option to add site logo but i cannot find it in self hosted wordpress cms

  12. ConnieKirkpatrick says:

    Thank you, this kept it simple and gives me a way to use this. Now, question: This will show a favicon for every page correct? What if I want a different one for each page? :)

  13. Apoorva says:

    I managed to add the favicon without the background image. But when I move to another tab on the browser, the background image shows up. For example- if you look up the favicon is perfect. But, when you are on another tab, you will the white background show up. Any advice would be highly appreciated! Thank you!

  14. mohammad raheem says:

    Simply add this line in your header.php at any where before tag.

    and upload favicon.ico to root folder of your website. Root folder where your wp installed, do not upload favicon.ico to sub folders. Refresh your browser one or two times your ico will appear on tab.

  15. Daniel Lobo says:

    This definitley fixed the problem, and changed the favicon on all pages, EXCEPT the home page! Why could that be?? Help please! And thank you!

  16. Manuel Echeverry says:

    great! I will do it

  17. joe says:

    dis noob didnt use the transparency

  18. Emma Lock says:

    Thank you so much for making this so easy to follow!

  19. Monu Saifi says:

    Thanks for give the tops to add favicon icon on my blog.
    Thanks again

  20. Richard says:

    Is there a way to install the all in one favicon plugin via my /wp-admin/ page via my browser? I’ve built everything straight through the browser, no ftp at all.

  21. Lluisrd says:

    Great¡¡¡, Just editing only one line of (header.php) I have a favicon.

    But I prefer 128×128 favicons…. like Google


  22. Kayode says:

    Thanks so much… I tried the insert header and footer but it didn’t work but when I tried the “All in one Favicon”, it worked.. Thanks a lot..

  23. Joel Mwakasege says:

    Wow thank you, this one was a life savior. My blog was just on default to WordPress Icon.

  24. Rahul says:

    What,s the difference?
    I mean why to mess with FTP,if a simple plugin is available and serving the same purpose?

    • Editorial Staff says:

      Because the task is so simple, it can be by avoiding a plugin. But again personal preference.

  25. Kelvin Hanratty says:

    Is there any reason why is HAS to be 16×16, because high resolution or, dare I say it, “Retina” screens are at a higher pixel density?

    The reason I mention it, as I’ve used a site to convert a picture into a favicon and it gave me multiple sizes as options: 16, 32, 64 pixels. Does WordPress not cater for this?

    Excuse my ignorance, I’m pretty new to WordPress! :)


  26. Praveen Prasad says:

    Without uploading Plugins one can simply apply a Favicon to a Site.

    Simple Steps :-

    1) Hosting CPanel —> File Manager –>

    2) Search for the default image in the Theme folder.

    Ex- genesis/images/ favicon.ico

    Upload your .ico file to the same folder and remember the name of the default file.
    (here favicon.ico)

    I don’t think that remembering a simple filename is annoying. :)

    Then delete this file and rename the new image file with the previous file name.

    It Works :)

    • David says:

      Yes, this how I did that in bluehost. I’ve just overwrite the favicon.ico that was there with my image uploaded. The only thing is that the original was set at 16×16 and I had to add a similar 16×16. It didn’t take a 32×32 though but it’s fine, it worked easily.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.