原创文章,转载请注册出处,本文地址:http://velep.com/archives/134

在文章velep.com成长之路7—wordpress显示文章一部分内容即摘要显示中说明了使用Read more标签如何在首页中摘要显示文章。但还留有一个问题,即Read more标签显示为“Continue reading”,怎么看都觉得不好,于是想办法把它改成了“阅读全文”的标签显示。

直接在wordpress源码中搜索Continue reading关键字,在suffusion主题中多个文件有出现,改哪个文件呢?经过实验,应该改wp-content/themes/suffusion/post-formats/content.php这个文件下的Continue reading,即用“阅读全文”替换掉该文件中的“Continue reading”即可。

注意:替换时,注意“阅读全文”编码要用UTF-8的编码格式,否则网页上会显示乱码。我在更改过程中就出现了这个乱码问题。另外,有网友说,最好不要在 dreamweaver 软件上改wordpress源码,因为在dreamweaver 里改容易出问题,会带bom。

关于改变read more样式,可参考wordpress官方文章:http://codex.wordpress.org/Customizing_the_Read_More或者它的手册:改变“Read More”的样式

» 文章出处: reille博客—http://velep.com , 如果没有特别声明,文章均为reille博客原创作品
» 郑重声明: 原创作品未经允许不得转载,如需转载请联系reille#qq.com(#换成@)
分享到:

  One Response to “velep.com成长之路11—suffusion主题中把Read more标签从Continue reading换成阅读全文”

  1. 最新的WordPress 里面没有这个文件夹。。。。我没找到

Leave a Reply to 27875787 Cancel reply

(必须)

(我会替您保密的)(必须)

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

   
© 2012 velep.com | reille blog | 管理| 粤ICP备15065318号-2| 谷歌地图| 百度地图| Suffusion theme|Sayontan Sinha

无觅相关文章插件,快速提升流量