小冬SEO

如何去掉织梦版权信息中的Power by DedeCms链接

2019-02-12 2:25:32 17953 织梦二开

  如果大家是直接在织梦官方下载的程序,自己来添加模板就会遇见这样的情况,调用版权信息的时候,织梦会自带一个Power by DedeCms带连接的版权,这样不利于我们做SEO优化,怎么去掉,且看小冬道来:

  方法一:

  你就去找include/目录下的dedesql.class.php文件。然后用DW或者++打开。

  然后ctrl+f查找:

$arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79);

$arrs2 = array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,

0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72,

0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20,

0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e);

  将这串字符删掉或者注释掉,注释标签可用//

这是注释后的效果,大概在多少行也能看见

  如果这些东西你自己不懂

  方法二:

  自己在后台再创建添加新变量,然后在源代码中调用自己新增的变量,这样也不会有Power by DedeCms

  如果还是不明白,那就咨询小冬seo吧

版权保护: 本文由小冬SEO编辑发布,转载请保留链接: https://www.cdseoyh.cn/cms/28.html

小冬SEO 草根seoer,从事搜索引擎关键词优化,喜欢学习专研各类SEO优化技巧—小冬SEO博客
  • 138文章总数
  • 17954本页访问
  • 运营时间
  • 标签

    友情链接

      {dede:sql sql="select url,webname from dede_flink where typeid = (select id from dede_flinktype where typename=~typename~)"}
    • [field:webname/]
    • {/dede:sql}