


WordPress分页插件WP-PageNavi(中文名:分页导航)是非常受欢迎的分页插件,并且还支持WordPress多站点。但是由于分页带有链接,这和我们提到过的“拿到WP官方主题Twenty Ten就是一顿nofollow伺候”、“WordPress阅读全文more-link nofollow”属于同类问题:不利于网站优化,权重被分离了。
为WP-PageNavi增加nofollow的方法:选择插件中的wp-pagenavi/core.php文件,搜索class='$class',在其前面加上rel='nofollow'。 注意rel='nofollow'、与class='$class'之间有空格哦。如果是用的EditPlus等编辑器修改的文件,需保持为UTF-8编码,如果是WP后台直接修改的插件代码,则不需要。
本文来自:DeXu.Xie‘s Blog,本文地址:http://xiedexu.cn/wp-pagenavi-nofollow.htm



亲爱的:若该文章解决了您的问题,可否收藏+评论+分享呢?
文章评论 本文章有个评论