Favicon

Favicon

From ThaiiS Note (Wiki)

Jump to: navigation, search

Create favicon

<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />

  • Decide what image you’d like to use. It is going to be really small so you may want to use only part of your logo. You want it to be clear whether it’s an image or a letter.
  • Go to http://tools.dynamicdrive.com/favicon/ to create your Favicon.
  • Upload your image and create favicon
  • Using an ftp program (see my post on ftp of you don’t have it already) upload your new favicon called favicon.ico to your main website directory.
  • Insert the code below in the head section of your main index page (homepage).
  • <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />

wordpress

<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />

for wordpress

<link rel="shortcut icon" href="<?php echo get_settings('home'); ?>/favicon.ico" />