Discuz! X2标题去掉"Powered by Discuz!"完美修改方法
2011-10-28 23:24
435 查看
问题: Discuz x2.0怎么去掉title里的Powered by Discuz! ?
回答:
1. 找到对应模板下的\template\default\common\header_common.htm文件.
2. 打开并且找到第五行:
原来内容:
<title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz!</title>
修改后内容:
<title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if (!empty($navtitle) && empty($nobbname))}--> - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname']<!--{/if}--></title>
这样可以避免人工修改seo信息以后,标题上出现多余的" - ".注意title中可能有多个" - ".一定要判断一下.
3. 更新缓存. (有时候不好使,只好直接删除缓存文件即可,缓存文件在:data\template\下,所有*.tpl.php的文件)
尾部版权声明修改方法(建议不修改):
不过,如果你特意想修改一下,可以看一下这个文件: footer.htm 51-54行<div id="frt">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em>$_G['setting']['version']</em><!--{if !empty($_G['setting']['boardlicensed'])}--> <a href="http://license.comsenz.com/?pid=1&host=$_SERVER[HTTP_HOST]" target="_blank">Licensed</a><!--{/if}--></p>
<p class="xs0">© 2001-2011 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div>
例如修改为:
<div id="frt">
<p>Powered by <strong><a href="http://gai001.com">第一改装网</a></strong>
</div>
也可以把这段去掉,比较清爽.
注意: 如果里面文字要有中文的话,需要把.htm文件保存为UTF-8格式,否则,会有乱码.
回答:
1. 找到对应模板下的\template\default\common\header_common.htm文件.
2. 打开并且找到第五行:
原来内容:
<title><!--{if !empty($navtitle)}-->$navtitle - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname'] - <!--{/if}--> Powered by Discuz!</title>
修改后内容:
<title><!--{if !empty($navtitle)}-->$navtitle<!--{/if}--><!--{if (!empty($navtitle) && empty($nobbname))}--> - <!--{/if}--><!--{if empty($nobbname)}--> $_G['setting']['bbname']<!--{/if}--></title>
这样可以避免人工修改seo信息以后,标题上出现多余的" - ".注意title中可能有多个" - ".一定要判断一下.
3. 更新缓存. (有时候不好使,只好直接删除缓存文件即可,缓存文件在:data\template\下,所有*.tpl.php的文件)
尾部版权声明修改方法(建议不修改):
不过,如果你特意想修改一下,可以看一下这个文件: footer.htm 51-54行<div id="frt">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em>$_G['setting']['version']</em><!--{if !empty($_G['setting']['boardlicensed'])}--> <a href="http://license.comsenz.com/?pid=1&host=$_SERVER[HTTP_HOST]" target="_blank">Licensed</a><!--{/if}--></p>
<p class="xs0">© 2001-2011 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div>
例如修改为:
<div id="frt">
<p>Powered by <strong><a href="http://gai001.com">第一改装网</a></strong>
</div>
也可以把这段去掉,比较清爽.
注意: 如果里面文字要有中文的话,需要把.htm文件保存为UTF-8格式,否则,会有乱码.
相关文章推荐
- 黄聪:Discuz!的SEO优化策略一:如何设置标题 & 如何去掉Powered by Discuz!尾巴
- Discuz/X3.1去掉标题中的Powered by Discuz!以及解决首页标题后的"-"
- Discuz/X3.1去掉标题中的Powered by Discuz!以及解决首页标题后的"-"
- 【转】 去掉Discuz!X1.5标题“Powered by Discuz!”版权标识的方法
- Discuz X2.5_去掉论坛标题和底部Powered by Discuz!_完美去掉
- spring mvc 默认配置文件 rest-servlet.xml 修改 方法 You have named the DispatcherServlet "rest," so by defau
- 修改对话框左上角的标题用SetWindowText(L“对话框的标题")即可
- 新闻标题超出一定长度显示"..."的CSS处理方法
- 学习Discuz! X3.2记录:修改标签“Powered by Discuz!”的一种方法
- Apache 选择"only for the Current User, on 8080, when started Manually"时的服务启动方法及如何修改端口号
- MFC去掉单文档的"无标题-"的方法
- "getline" bug fix for Microsoft Visual C++ 6.0 关于VC6的getline输入需要两个回车才结束的BUG修改方法
- discuz 3.1修改浏览器顶部标题 - Powered by Discuz!
- iOS中,修改AFNetworking源文件可接收text/plain的方法"Request failed: unacceptable content-type: text/plain"
- 修改ubuntu 的命令提示符("修改主机名和用户名")
- spring mongodb Criteria中"and"与"andOperator"方法的区别及"$and"如何工作
- 针对“【ASP.NET】"密码最短长度为7,其中必须包含以下非字母数字字符1"解决方法
- "=="和equals方法的区别
- 错误“Unexpected namespace prefix "xmlns" found for tag LinearLayout”的解决方法
- 博客园如何设置目录生成&设置目录&设置标题背景色&修改标题背景色