在织梦dedecms文章内容页中都会用上一篇下一篇来提高网站文章之间的相关性,这样也有利于网站的收录,但是如果想要更改这里面的一些东西还要注意修改。
找到include/arc.archives.class.php
查找
$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";
修改为
$this->PreNext['pre'] = "<span class='prev'><a href='$mlink' rel='prev'>{$preRow['title']}</a></span>";
查找
$this->PreNext['pre'] = "上一篇:没有了";
修改为
$this->PreNext['pre'] = "<span class='prev'><a href='http://www.yuanmacun.com'>你想要的文字</a></span> ";
查找
$this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
修改为
$this->PreNext['next'] = "<span class='next'><a href='$mlink' rel='next'>{$nextRow['title']}</a></span> ";
查找
$this->PreNext['next'] = "下一篇:没有了 ";
修改为
$this->PreNext['next'] = "<span class='next'><a href='http://www.yuanmacun.com'>你想要的文字</a></span>";
文章模板里调用代码
<div class="wz-pagelast">{dede:prenext get='pre'/} {dede:prenext get='next'/} </div>
CSS代码
/*上下篇*/
.wz-pagelast .prev a {
background: url("../images/icons.gif") no-repeat scroll 0 -224px transparent;
float: left;
height: 16px;
line-height: 16px;
padding-left: 22px;
}
.wz-pagelast .next a {
background: url("../images/icons.gif") no-repeat scroll 100% -240px transparent;
float: right;
height: 16px;
line-height: 16px;
padding-right: 22px;
}
2、本站永久网址:https://www.yuanmacun.com
3、本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长进行删除处理。
4、本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。
5、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
6、本站资源大多存储在云盘,如发现链接失效,请联系我们我们会第一时间更新。
源码村资源网 » 修改织梦dedecms文章页中的上/下一篇