Hi,

I want to be able to hide the page title on my front page using my Fusion subtheme.

I saw this:

http://www.drupalace.com/blog_entry_trick_bin_hiding_node_title_2007_07_03

But I don't see how this would work with Fusion. Is there another way to do this?

Would display:none be the answer using css instead?

Thanks!

Comments

jeremycaldwell’s picture

Hi lejon, you can use CSS to do a "display: none;" for the h1.title on the front page like this: ".front h1.title { display: none; }". Or you can copy the "page.tpl.php" from the Fusion Core theme folder and into your sub theme's folder and make changes to it there. Once you have added the "page.tpl.php" to your sub theme's folder be sure to clear the cache on your Performance page so it reloads the theme's files and picks up the new "page.tpl.php" file. Now you can edit it like the link you provided above and it should hide the title for you.

jeremycaldwell’s picture

Also something like this will work in your "page.tpl.php". It will hide the title from the front page yet show it on every other page.

<?php if ($is_front): ?>
  <?php // Hide node title from front page ?>
<?php else: ?>
  <h1 class="title"><?php print $title; ?></h1>
<?php endif; ?>
lejon’s picture

Status: Active » Fixed

thanks, i'll go for display:none!

Status: Fixed » Closed (fixed)

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