by shigemk2

当面は技術的なことしか書かない

サイトにfaviconを追加する

faviconとは、ウェブサイトやウェブページに関連付けられたアイコンのことで、
ブラウザのタグで表示されてるアイコンのことである。

WordPressfaviconを追加するにはどうしたらよいのか?

FAQ/レイアウトとデザイン - WordPress Codex 日本語版

CodexのFAQに書いてあるので、これをそのまま参考に…

How to add a favicon to your site?

To add a favicon to your site in WordPress 2.0, place your favicon.ico file inside your theme folder (for example: wp-content/themes/default/) then add this line to header.php:

Be sure to add it somewhere within the section.

See Creating and Installing a Favicon/en For more detailed instructions.

  1. wp-content/themes/テーマ/以下にfavicon用の画像ファイルを配置する
  2. 以下をheader.phpに記述する(headタグの中に記述されていることを確認すること)
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" /> 

これだけですね。はい。