胖狐狸
一个站长的学习笔记

PHPcms的title修改办法

修改模板文件header.html的<title>……</title>改成<title>{if isset($SEO[‘title’]) && !empty($SEO[‘title’])}{$SEO[‘title’]}千寻英语网{else}{$SEO[‘site_title’]} {/if}</title>

内容页的header要新建个模板,header_content.html,复制header.html的代码, 把<title>……</title>改成<title>{$title} -千寻英语网</title>

修改show.html模板第一行,{template “content”,”header”}改成{template “content”,”header_content”}。
大功告成,更新下首页、栏目页、内容页。

赞(0)
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址