Hello,

The goal is to wrap node title inside of the < h1 > tag.

I went to Default site template, and i choose "Manualy set" for Title type.
I wrote <h1>%node:title</h1> inside of the title field.

Now, i go to the newly created node. The page markup contains an empty < h2 > tag which is situated above the title.

  <div class="panel-pane pane-page-content">
    <h2 class="pane-title"></h2>
    <h1>test</h1>

How can i delete this empty h2 tag?
Thank you for great module!

Comments

intyms’s picture

Status: Active » Fixed

The idea is to wrap Node titles and Panels titles inside of H1 tag.
Here is the solution that works for me:

I have copied modules/panels/templates/panels-pane.tpl.php to my theme folder.
And replaced

  <?php if ($title): ?>
    <h2 class="pane-title"><?php print $title; ?></h2>
  <?php endif; ?>

with

  <?php if ($title): ?>
  <?php if($display->title_pane == $pane->pid) : ?>
    <h1 class="pane-title"><?php print $title; ?></h1>
  <?php else : ?>
    <h2 class="pane-title"><?php print $title; ?></h2>
  <?php endif; ?>
  <?php endif; ?>

Thanks to "spikeerob" for the solution (http://drupal.org/node/991384#comment-4004824)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.