Inveterate dabbler in business, travel, gadgets & life

Adding a favicon to wordpress.

After looking at my 404 statistics and noticing the huge number of failed requests for a favicon.ico file I thought I should add one!

I added the favicon (the little graphic before the URL in the bar at the top of the screen) to my site by:-

  • Importing the desired picture into the favicon.cc site, although you can design an icon on the site too.
  • Upload the generated favicon.ico file to the WordPress themes/nigarila folder.
  • Then added this line to the file header.php: <link rel=”shortcut icon” href=”<?php bloginfo(‘template_directory’); ?>/favicon.ico” /> just before the </head> tag.

Hopefully, that will stay working! Many thanks to the WordPress help site for the code.

_______________-

Kiara emailed me on 240918 and suggested this one. 

https://www.websiteplanet.com/webtools/favicon-generator/

this tool allows you to create favicons from pictures that are up to 5 MB from either JPG, PNG or GIF or even from a gallery. It also lets you generate favicons for different screen sizes and resolutions at the same time.


Reader Comments

Comments are closed.