首先找到 index.php, 然后把主题默认的分页导航的容器换成下面的容器。

1<!-- typecho用这个 -->
2<?php $this->pageLink('点击查看更多','next'); ?>
3
4<!-- wordpress用这个 -->
5<?php next_posts_link(__('点击查看更多')); ?>

然后找到你主题的 footer.php,把下面的 js 代码丢 前面或者添加到JS文件或者新建一个Js文件

 1<script type="text/javascript">
 2//点击加载更多
 3jQuery(document).ready(function($) {
 4    //点击下一页的链接(即那个a标签)
 5    $('.next').click(function() {
 6        $this = $(this);
 7        $this.addClass('loading').text('正在努力加载'); //a标签加载一个loading的class属性,用来添加加载效果
 8        var href = $this.attr('href'); //获取下一页的链接地址
 9        if (href != undefined) { //如果地址存在
10            $.ajax({ //发起ajax请求
11                url: href,
12                //请求的地址就是下一页的链接
13                type: 'get',
14                //请求类型是get
15                error: function(request) {
16                    //如果发生错误怎么处理
17                },
18                success: function(data) { //请求成功
19                    $this.removeClass('loading').text('点击查看更多'); //移除loading属性
20                    var $res = $(data).find('.post'); //从数据中挑出文章数据,请根据实际情况更改
21                    $('#content').append($res.fadeIn(500)); //将数据加载加进posts-loop的标签中
22                    var newhref = $(data).find('.next').attr('href'); //找出新的下一页链接
23                    if (newhref != undefined) {
24                        $('.next').attr('href', newhref);
25                    } else {
26                        $('.next').remove(); //如果没有下一页了,隐藏
27                    }
28                }
29            });
30        }
31        return false;
32    });
33});
34</script>

css 美化按钮:这里就不写了。每个主题风格都不一样,还是自己自定义吧。

文章来自:MrJu