today I tried all day long to disable the node title my front page but could´t reach my goal!
To do so I did as is written in many places on the web and changed (or even deleted) line 146 in the page-front.tpl.php file which reads:

if ($title) :
print $title;

But no effect at all. I also flushed all caches afte the changes, so that cannot be the problem.
When I changed (or deleted) the same content of the page.tpl.php file (line 126) I could disable the title on all other pages but not the front-page. Also changing both lines in both files would not disable the title on the front page!
For sure it´s easy and I´m only making a slight mistake but I have no more ideas what to do, so please help me... ;-)
Thanks in advance!


Title:Disale node title on front pageDisable node title on front page


Have another projects that need my attentions :)

Are you sure already deleted or change the code below? I disable the title by deleting the following code

<?php if ($title) : ?><h1 class="title"><?php print $title; ?></h1><?php endif; ?>

Thanks for the answer but didn´t help! If I delete the mentioned line in both the pages.tpl.php and the page-front.tpl.php I can "kill" the title on every page but not the front page.
Strange thing... ;-)

Hi, if you want to disable the title only on frontpage then you just delete the code in page-front.tpl.php (the page-front.tpl.php is displayed in frontpage) but for page.tpl.php is displayed in regular page.

So just delete the code in page-front.tpl.php and not the page.tpl.php.


Hi and again thanks for the answer!
I already understood that page-front.tpl.php is displayed on the front page, but the title on the front page keeps and keeps displaying even if I delete the code in the page-front.tpl.php!
The problem is: I can disable the title on all other pages (except front) by deleting the code in the page.tpl.php. That works fine. But deleting the same code in in the same way in the page-front.tpl.php does nothing for the front-page title!


That is a strange, what do you use? if you are using the sub-theme then you must change the page-front.tpl.php for sub-theme.

Status:Active» Closed (fixed)


I'll close this. Please re-open if you need more helps.


Great template!

I wanted the slideshow in all my pages so I had to use the page-front.tpl.php and was experiencing the same problem with not being able to get rid of the title by deleting the above mentioned code. (it worked in the page.tpl.php just fine)

I ended up deleting line 52 :<?php if ($site_name) : ?><h1 class="logo-name"><a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></h1><?php endif; ?>

I cant tell you why it worked and I am not finding it is having any side effects.

just use this in the css

.front #page-title {

finally worked