Space after title in Garland node listings

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; ?>

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <small> <sup> <sub> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <h4> <img> <br> <br /> <p> <div> <span> <b> <i>
  • Lines and paragraphs break automatically.

More information about formatting options