Space after title in Garland node listings

Submitted by gunnar on Sat, 03/31/2007 - 17:23
Question

How do I get a bit of space between the title and first node in garland node listings?

Answer

Edit the node.tpl.php template in the garland theme and add a <br /> before the node title.

    <?php if ($page == 0): ?>
          <br />
          <h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
    <?php endif; ?>

Add new comment

Plain clean text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.