wordpress在网页底部添加小图标
glwzu 原创
没事在自己网页上瞅来瞅去,在网页底部看到那些模板自带的图标+链接,感觉很不舒服,所以就把他们全改了。有个小问题就是图标改图标有些麻烦。仔细看了看代码,嘿嘿,还好不是很难,下面就是解决方法。
1)首先在wp-content\themes\sthblue\images\icons中加入自己想要的图标。这里的图标都比较小,所以建议把图标大小大概控制在16*16 的比例。 比如我就加了一个百度图标,全名baidu.png。
2)在footer.php中加上代码
在<!– footer START –>和<!– footer END –>之间可以看到有<span class=”…”><a href=”…”>…</a>
</span>代码
我加的是百度统计的网址加名字为baidu的图标,故代码可以写为:
| <span class=”baidu” ><a href=”http://tongji.baidu.com/hm-web/2362273/home/welcome/”><font color=white>百度统计</font></a></span> |
3)在style.css中,在/* footer START */与/* footer END */之间,看到如下代码:
| span.sitemap{ background:url(images/icons/sitemap_color.png) no-repeat; } span.mini_rss{ background:url(images/icons/mini_rss.png) no-repeat; } |
所以可简单加入一句我的图标地址
| span.baidu{ background:url(images/icons/baidu.png) no-repeat; } |
到这里问题已经结束,但最后我还是刷新半天才刷新出来,现在你们可以看到我网页底部的小图标啦! 注意如果在底部不显示模板的图标链接,最好在footer与CSS里把不用的代码都删掉。
好啦,问题虽小,但至少也可以写这么一篇文章啦!
您可能会喜欢:
Filed under wordpress相关, 网站相关. Tags: wordpress
量子统计那个有点不齐啊。。火狐。。
———-
热。。。
[回复]
@沉冰浮水
你说的是淘宝那个吧?那图标是阿里妈妈给的,凑合着看吧
[回复]
底部好多统计啊
[回复]
@岸边
[回复]
我的博客用不到呵呵!
支持下!
[回复]
@老苏
谢谢
[回复]
这个不错,我可以定制小图标了。
链接已经恢复
[回复]
细节决定成败啊~~好用心的说
标签云的颜色很漂亮
[回复]
@小周
好的,以后会常来拜访。
[回复]
@球球
谢谢夸奖!
[回复]
应该是没定好位吧。。现在这个横条的更难看。。
———-
热。。。
@glwzu
[回复]
@沉冰浮水
额,以前那个图标太大了的。
我要求也不高,够用就行
[回复]
貌似那些图标,一般要你发放置的都有教哦~
[回复]
@观尔腾
网上都有教啊,不过这个是我自己琢磨出来的
[回复]
Hi buddy, your blog’s design is simple and clean and i like it. Your blog content articles are superb. Please maintain them coming. Greets!!!
[回复]
I actually value how you have your site arranged. Mountains of the stories you bring up are really fascinating to read. While I dont concur with many things you write about on your site, most all of it is somewhat stimulating.
[回复]
I very much get a kick out of how you have entries set up. A great deal of the subjects you bring up are really exciting to read. Though I do not see eye to eye with everything you bring about on your site, it is pretty informational.
[回复]
I really decline with stuff you are claiming here on the blog. Although some of this facts may be bona fide, I actually feel a problem with it.
[回复]