Removing Title from frontpage

teach42 - April 25, 2007 - 17:41

I'm trying to remove the Title from the content on my front page (using the Rezina theme if that matters). As I understand it, all pages are built by page.tpl.php within my theme. Based on other forum topics I've seen, I thought i could duplicate that file, rename it to page-frontpage.tpl.php and then remove the following code and I would be golden.

<?php
if ($title != "" ):
?>

<?php
print $title
?>

<?php
endif;
?>

However, that doesn't seem to do anything.

In fact, I removed that code from page.tpl.php entirely at one point, and interestingly enough, it removed Titles from every page on my site EXCEPT the front page! I can't figure it out.

It looks to me from the rendered source that the title on the front page is being generated within the call to

<?php
print($content)
?>
because it appears between the and

However, I can't figure out for the life of me where that is generated.

I'm not a programmer, just a total hack who is in over his head :)

Can anyone help me figure out how to remove the Title from the content on my front page?

oops

teach42 - April 25, 2007 - 17:44

"because it appears between the and" should read
because it appears between the "start main content" and "end main content "

=-=

VM - April 25, 2007 - 17:46

have you seen this node? http://drupal.org/node/103057

Doesn't help

teach42 - April 25, 2007 - 19:55

Yeah, I checked that out. That link requires you to either use a module or gives you a solution that will hide it for multi-node pages (which this is not)

=-=

VM - April 25, 2007 - 20:03

I should have doubled checked the node i pasted. Incorrect one, see : http://drupal.org/node/137924

in your site config

bonobo - April 25, 2007 - 21:03

in your site config, set the home page node to a specific node (nid) --

Assuming this node is a page, create a tpl.php file named page-node-x.tpl.php (where x is the the nid)

Then, edit the tpl.php file to display whatever you want.

In addition, the node.tpl.php page ( http://drupal.org/node/11816 ) and the page.tpl.php page ( http://drupal.org/node/11812 ) give a solid (albeit technical :) ) breakdown --

Cheers,

Bill
-------
http://www.funnymonkey.com
Tools for Teachers

BIngo!

teach42 - April 25, 2007 - 21:41

Thanks a million, that did it for me.

 
 

Drupal is a registered trademark of Dries Buytaert.