Drupal 7 - 将内容类型标题样式从<h3>更改为</h3> <h2> </h2>

时间:2014-12-10 11:04:55

标签: php html css drupal drupal-7

我的Drupal安装上有一个名为&#34; Article&#34;的内容类型。其中包含强制标题(我似乎无法强制执行),此标题会以<h3>标记输出。

如何将其更改为<h2>

您可以在 - https://www.workbooks.com/resources/marketing-roi

中查看示例内容类型页面

非常感谢,

萨姆

1 个答案:

答案 0 :(得分:0)

您可以关注Templates suggestions并仅使用node--article.tpl.php自定义文章内容类型的输出。

基于Bartik节点模板,您可以编辑该部分代码:

<h2<?php print $title_attributes; ?>>
  <a href="<?php print $node_url; ?>"><?php print $title; ?></a>
</h2>
相关问题