Adding a title to my Drupal Front page feed

asked Nov 29, 2012 in Website Builder by DruNew (1,930 points)
Hi there
My drupal site’s front page has listings of the latest articles in teasers. I want to add a title to the top of the listing, but I don’t know how to do that. My current front page feed doesn’t have any title’s. Can anyone please help me do this?

2 Answers

0 like 0 dislike
answered Nov 29, 2012 by RalphK (5,800 points)
In the Drupal default listing, it’s better and quicker to create a block containing <h2>Latest Tips</h2>,  just adjust the tags accordingly, and disable the block title. Then put it in a "Content" region, at the top.
0 like 0 dislike
answered Nov 29, 2012 by randy999 (4,520 points)
You can edit the file page.tpl, and hard code the title using the $is_front variable to do it.
<?php if ($is_front): ?>
  <h1 class="title" id="pagetitle"><?php print t(‘My Titile’); ?></h1>
<?php elseif ($title): ?>
  <h1 class="title" id="pagetitle"><?php print $title; ?></h1>
<?php endif; ?>