嗨,如何删除正在添加到模板中的正文类.php
我正在使用 ZEN 模板并将其撕裂。如果您知道如何摆脱以下内容。
<style>
@import url("http://localhost/~russellharrower/netcast/modules/system/system.base.css?nl30xl");
@import url("http://localhost/~russellharrower/netcast/modules/system/system.messages.css?nl30xl");
@import url("http://localhost/~russellharrower/netcast/modules/system/system.theme.css?nl30xl");
</style>
和<body class>
在你的模板中尝试一下.php,但你实际上需要创建一个 ZEN 的子主题并覆盖 CSS 值。 函数 THEMENAME_css_alter(&$css) { unset($css[drupal_get_path('module','system')."/system.theme.css']); unset($css[drupal_get_path('module','system')."/system.base.css']); unset($css[drupal_get_path('module','system')."/system.messages.css']); }