我应该如何在我的子主题中命名页脚模板文件以使其与其他模板文件中的此类语句一起使用?
<?php print render($page['footer']); ?>
(我正在使用面板,但也许这与这里无关。)
我应该如何在我的子主题中命名页脚模板文件以使其与其他模板文件中的此类语句一起使用?
<?php print render($page['footer']); ?>
(我正在使用面板,但也许这与这里无关。)
根据 Drupal 7社区文档:
Any .tpl.php files from the parent theme will be inherited. You can add template files with more specificity — for instance, node--blog.tpl.php building on an inherited node.tpl.php.
因此,您可以将页脚区域的模板文件命名为:region--footer.tpl.php