欢迎来到润旭源码网
帮助中心

润旭源码网

热门搜索: 企业源码    免费源码   

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

  • 时间:2020-07-14 09:02 编辑: 来源: 阅读:187
  • 扫一扫,手机访问
摘要:在织梦dedecms文章内容页中都会用上一篇下一篇来提高网站文章之间的相关性,这样也有利于网站的收录,但是如果想要更改这里面的一些东西还要注意修改。找到include/arc.archives.class.php查找$this->PreNext['pre'] = "上一篇:<a href='$mlink'>{$preRow['title']}</a>

在织梦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.最模板zuimoban.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.最模板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;

}


 


  • 全部评论(0)
资讯详情页最新发布上方横幅
联系我们

QQ:888477 {点击直接联系}

邮箱:runxu123@qq.com

时间:周1——周6 【9:00-23:00

联系客服
购买源码 源码咨询 投诉建议 联系客服
0373-6621888
手机版

扫一扫进手机版
返回顶部