后台设置页不输出h1的规范📅 2024-09-03  |  👁 1153 次浏览

后台设置页经网关执行时,页面外壳(包括h1标题)已由网关输出。因此admin-config.php内不要再输出h1标签。

原因

网关admin/template_config.php在include admin-config.php之前,已经输出了后台页面壳(admin/inc/header.php),其中包括了h1标题(默认取template.json的title)。如果admin-config.php再输出h1,会导致页面出现两个h1标签。

  • 页面外壳已由网关输出
  • 不要再输出h1标签
  • 不要再include后台header/footer
  • 直接输出业务HTML即可

芒阳网络团域cms开发中心

Copyright © 2023 刀客CMS内容管理系统