修改织梦dedecms文章页中的上/下一篇

织梦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='织梦58zuimoban.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='织梦58zuimoban.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;
}

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/ef25c0a4ca8a6edd7455d99b22d087bc.html