muban大师 发表于 2020-2-6 10:50:16

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

在织梦dedecms文章内容页中都会用上一篇下一篇来提高网站文章之间的相关性,这样也有利于网站的收录,但是如果想要更改这里面的一些东西还要注意修改。
        找到include/arc.archives.class.php
        查找
        $this->PreNext['pre', = "上一篇: ";
        修改为
        $this->PreNext['pre', = "";
        查找
        $this->PreNext['pre', = "上一篇:没有了";
        修改为
        $this->PreNext['pre', = "你想要的文字 ";
        查找
        $this->PreNext['next', = "下一篇: ";
        修改为
        $this->PreNext['next', = " ";
        查找
        $this->PreNext['next', = "下一篇:没有了 ";
        修改为
        $this->PreNext['next', = "你想要的文字";
        文章模板里调用代码
          {dede:prenext get='pre'/} {dede:prenext get='next'/}
        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;
        }
页: [1]
查看完整版本: 修改织梦dedecms文章页中的上/下一篇