How To Add a Favicon to Your WordPress Site

How To Add a Favicon to Your WordPress Site

Favicons are the little icons that appear next to the website title in your browser’s tabs. They allow websites to be easily recognizable when switching from tab to tab and create brand identity. They are super easy to create and implement – here’s how!

Note: The instructions below are for a self-hosted WordPress site, if you website is hosted on these steps may not work.

Step #1: Create

  1. Select the image you would like to use for your favicon (oftentimes an element taken from your logo) – making sure the image is a square. Tip: Images with transparent backgrounds look best, so look for a PNG or GIF file.
  2. Visit and click on Import Image.
  3. Click Browse and select the image you would like to use for your icon.
  4. Select Keep Dimensions and click Upload.
  5. View your favicon in the Preview pane and if everything looks good, click Download Favicon.

Add a Favicon to Your WordPress Site

Step #2: Implement

  1. Log-in to WordPress and click on Media > Add New and upload your new favicon.
  2. Once finished uploading, click Edit and copy the File URL in the right sidebar (Ctrl + C).
  3. In the left sidebar, click on Appearance > Editor.
  4. In the right sidebar, select the file titled Header or Header.php.
  5. Scroll through the code displayed and locate the line of code that begins with <link rel=”shortcut icon” and ends with /favicon.ico” />. If you are able to find the code – replace it with the code below. If you are unable to locate the code, add the code below just after the <head> HTML tag. Remember to replace with the File URL you copied in #2 above.
    <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>" />

Are you ready to attract your dream clients?

let's chat!