Added the favicon in the wordpress, it's easy.
1, get your favicon icon, and rename it as favicon.ico
2, upload the favicon.ico to the root folder of your wordpress system.
3, modify the header.php source code in the theme folder you are using, for my system, it is /root_folder/wp-content//themes/twentytwelve/header.php, before the </head> added two lines,
<link rel="icon" href="http://xionghuilin.com/wp/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://xionghuilin.com/wp/favicon.ico" type="image/x-icon" />
Done, you can see the result as:
本文介绍了一种简单的方法来为WordPress网站添加图标(favicon)。主要包括三个步骤:获取图标并命名为favicon.ico;上传文件到WordPress根目录;修改主题文件header.php中的代码以链接图标。
495

被折叠的 条评论
为什么被折叠?



