看到这一篇的朋友,恭喜你,说明上一篇文章《文章过长,怎么实现分页显示?》你已经实现了效果,但你又不满足现状,想更进一步的美化你的文章分页按钮,请保持耐心,先向你保证,看完本文你能实现什么效果,看图:
注意区分图上信息,前一个是我们平时看到的more摘要显示按钮,后面那个就是本文要达到的文章分页按钮了;
1、在wordpress源程序中按路径wp-includes/js/找到quicktags.js文件;
ctrl+f搜索以下代码:
edButtons[edButtons.length]=new edButton(“ed_ins”,”ins”,’‘,”“,”s”);
紧跟代码添加如下代码:
edButtons[edButtons.length]=new edButton(“ed_next”,”page”,”< !–nextpage–>”,””,”p”,-1);
继续搜索代码:
j.Buttons[j.Buttons.length]=new edButton(a+”_link”,”link”,””,””,”a”);
在其后再添加一句代码:
j.Buttons[j.Buttons.length]=new edButton(a+”_next”,”page”,”< !–nextpage–>”,””,”p”,-1);
保存文件并上传!