西安37建站:专注于各类网站建设、seo优化关键词排名、免费网站诊断、竞价托管、分销商城系统建立。微信:1346597247

图文教程:wordpress网站添加favicon的方法

西安37建站优化——0基础学网站建设,毫不费力!

当前位置: 首页 » 网站建设 » 图文教程:wordpress网站添加favicon的方法

图文教程:wordpress网站添加favicon的方法

西安37建站优化 2017-11-02 11:19:54 星期四 网站建设 2660 ℃ 12 条评论

最近发现像一些比较大的站都有自己的网站icon,可能大家都见过,像百度的icon,一个熊掌图标:

百度icon

途牛的icon:

途牛网站icon

还有很多其他大型网站,都有自己的icon。这个一般可以使用自己的网站logo,下面具体的网站添加favicon方法就来一一告诉大家。

首先,用ps等作图软件做一张像素为16*16或者48*48的图片。如下图是西安37网站建设做的48*48的图片,注意命名为:favicon.ico

icon

接下来,将名为favicon.ico的图片上传至网站根目录,注意不是主题的目录。

上传icon

下面,在主题中找到header.php文件。在<head></head>标签之间插入如下代码:

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />

然后保存,再去前台刷新,发现是不是已经出现网站独有的icon了呢。

西安37建站网站icon

 

12条回应:“图文教程:wordpress网站添加favicon的方法”

  1. I simply want to mention I am all new to weblog and actually savored this page. Likely I’m likely to bookmark your site . You definitely have very good posts. Thanks for revealing your blog.

  2. My brother suggested I might like this website. He was entirely
    right. This post truly made my day. You can not imagine just how much time I had spent for this information! Thanks!

  3. Fantastic goods from you, man. Ive study your stuff ahead of and youre just as well amazing. I enjoy what youve got right here, adore what youre stating and the way you say it. You make it entertaining and you even now manage to help keep it wise. I cant wait to go through additional from you. That is really an incredible weblog.

  4. Fantastic goods from you, man. Ive study your stuff ahead of and youre just as well amazing. I enjoy what youve got right here, adore what youre stating and the way you say it. You make it entertaining and you even now manage to help keep it wise. I cant wait to go through additional from you. That is really an incredible weblog.

  5. Fantastic goods from you, man. Ive study your stuff ahead of and youre just as well amazing. I enjoy what youve got right here, adore what youre stating and the way you say it. You make it entertaining and you even now manage to help keep it wise. I cant wait to go through additional from you. That is really an incredible weblog.

发表评论

电子邮件地址不会被公开。 必填项已用*标注