Some times we need to quote others comments in our comment. So theme builder should consider to build this function in comments template. Here I want to share one solution to Build a Quote Function in WordPress Theme. First, we need to custom comment template in functions.php file. Then put this JS code to your [...]
‘wordpress’ 标签下的文章
How to Build a Quote Function in WordPress Theme
How to Use Mail To Commenter Plugin in Threaded Comments
Last post I told you to make wordpress theme support threaded comments. There is a simple idea. Copy the build-in template. But the idea can not work when you installed Mail to Commenter plugin and still want to use it in your threaded comments supported wordpress themes. So how to solve this problem? I’ll tell you [...]
How to make wordpress theme support threaded comment?
WordPress comments template is the most difficult part in building a wordpress theme. When it comes to make a threaded comments supported wordpress theme, comments template becomes more complex. However, there are many users like threaded comment as it show a clear relationship between each comments. There is a simple idea: copy the build-in template if [...]
Start Gzip in .Htaccess to Speed Up Website
Gzip is to compress your webpage on server in order to speed up your website. It will build a .gz zipped file on your server and then send it to webpage viewers. As the file is zipped, the download time will decrease a little. It also benefit for those websites which got a limited bandwidth. This post [...]
博客中Tag的应用及其误区
关于博客的标签应用,很多人可能会存在不同的误解。很多的SEO文章中都会介绍到要避免Wordpress中tag页被收录,从而减少重复内容,对于这样的说法,我曾经的做法就是在制作模板的过程中直接将Tag标签一项隐去,或者对Tag链接采用nofollow的策略,然而这样的做法其实是非常不利于搜索引擎优化的,本文就将介绍TAG标签的作用及其使用方法,提醒博主避免TAG应用的误区。
用WordPress短代码在博客任意部分添加广告
其实不怎么满意现在文内广告的位置,本来是想通过判断WP中的more标签位置插入广告的,奈何自己总是很懒,加上毕业设计的任务压在头上,也就作罢了,忽然想起WP的短代码功能似乎可以实现此功能,于是翻了翻WordPress Popular Posts的代码,找出了此段代码,这样就可以轻松在博客文章或者WordPress侧栏中任意位置添加Adsense广告了。
.htaccess中开启Gzip加速网页展示
Gzip的作用简单点说起来就相当于将服务器上的文件压缩为一个.gz后缀的文件,类似将文件压缩成.zip格式,然后将.gz格式的文件再发送给浏览器,由于压缩后文件大小减少了很多,因而能起到提速的功能,也能减少服务器流量,对于页面文件比较大或者类似活着这种服务器在国外的时候,开启Gzip功能是很有效的加快网站打开速度的解决方法。本文会介绍的是在.htaccess中启用G
如何让WP主题同时支持嵌套评论与邮件回复
本着折腾到底不罢休的精神,又给博客做了个手术,这手术做的可不轻松,啃下了WP最艰难的部分。本次修改主要是为了支持嵌套回复,也是为了提高用户体验的一个重大举措吧,其实要纯粹的支持嵌套回复功能倒是简单,然而同时要正常使用ThinkAgain的Mail to Commenter插件来邮件回复的时候,问题就会随之而来了。昨晚折腾到半夜三点,终究是把问题给解决了。关键点在于如
如何让wp-recentcomments不显示管理员评论
安装了MG12的wp-recentcomments插件用来增强显示最新的评论,然而用着一直有些问题,就是无法屏蔽掉管理员的回复评论,在其插件的发布页面也见到有人提及此问题,然而却没有给出一个解决的办法,制作者mg12只是说判断评论“不是通过 email 的, 是通过数据库中记录的权限. 如果是 administrator 就认为是管理员.”可惜本人在安装博客之后就把最原始的管理员帐号直接给删除了,
新年新面貌新主题
赶在这新年的头一天换上完全自主知识产权的新皮,新的一年,新的开始,不能算是迷信,也是想图个喜庆图个吉利。 新主题参考了很多优秀的主题,充分吸收各家所长,形成了现在中西结合的风格,或者说的比较不好听的就是个“骡子”吧,总之是杂交品种了。这款Wordpress主题在风格上可以归类于杂志主题和两栏主题的一个混合模式吧。