春季是一个富有生命力季节,也是一个美丽、神奇,充满希望季节。都说春季是花海洋。粉色淡雅,白色端庄,红色热烈,紫色深情,泼泼洒洒,浓浓烈烈。一朵朵花,把春季朝气蓬勃都开出来了。
在织梦dedecms文章内容页中都会用上一篇下一篇来提高网站文章之间的相关性,这样也有利于网站的收录,但是如果想要更改这里面的一些东西还要注意修改。
找到include/arc.archives.class.php
查找
$this->PreNext['pre'] = "上一篇:<a rel="nofollow noopener noreferrer" href='$mlink'>{$preRow['title']}</a> ";
修改为
$this->PreNext['pre'] = "<span class='prev'><a rel="nofollow noopener noreferrer" href='$mlink' rel='prev'>{$preRow['title']}</a></span>";
查找
$this->PreNext['pre'] = "上一篇:没有了";
修改为
$this->PreNext['pre'] = "<span class='prev'><a rel="nofollow noopener noreferrer" href='http://www.最模板zuimoban.com'>你想要的文字</a></span> ";
查找
$this->PreNext['next'] = "下一篇:<a rel="nofollow noopener noreferrer" href='$mlink'>{$nextRow['title']}</a> ";
修改为
$this->PreNext['next'] = "<span class='next'><a rel="nofollow noopener noreferrer" href='$mlink' rel='next'>{$nextRow['title']}</a></span> ";
查找
$this->PreNext['next'] = "下一篇:没有了 ";
修改为
$this->PreNext['next'] = "<span class='next'><a rel="nofollow noopener noreferrer" href='http://www.最模板zuimoban.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;
} 到此这篇关于修改织梦dedecms文章页中的上/下一篇就介绍到这了。造成人与人之间巨大差异的根本原因是自律程度的高低。更多相关修改织梦dedecms文章页中的上/下一篇内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!