【问题标题】:How can head and body tags appear in both index.php and header.phphead 和 body 标签如何同时出现在 index.php 和 header.php 中
【发布时间】:2012-01-25 06:36:22
【问题描述】:

我在开发 WordPress 主题方面迈出了第一步,目前正在经历二十个主题,我想知道 index.php 和 header.php 怎么会包含 <head><body> 标签?

【问题讨论】:

  • 可能index.php错了(有好几个)?

标签: html wordpress wordpress-theming


【解决方案1】:

在index.php中有一个get_header()函数,它调用header.php(有body和head标签)。

我建议重新下载主题,因为我确定那个主题不会出现这样的错误。

干杯。

【讨论】:

    【解决方案2】:

    @nikolay 你完全正确

    在二十个主题中,我确定索引和标题页中都没有标签。 大部分标签会出现在头文件中。

    【讨论】:

      猜你喜欢
      • 2011-09-12
      • 1970-01-01
      • 2016-05-06
      • 1970-01-01
      • 2014-10-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-20
      • 2013-01-27
      相关资源
      最近更新 更多