[Mediawiki-l] Remove Main Page Title

Richard Kurz rbk2 at Lehigh.EDU
Tue Feb 27 22:19:50 UTC 2007


Hi,
I just upgraded from 1.5 to 1.9.2, and I can't remove the words "Main 
Page" from the home page as I could in the last version.  Previously, on 
this mailing list, the following instructions were given to remove that 
title:

In monobook.php change :
<h1 class="firstHeading"><?php $this->text('title') ?></h1>

into

<?php if($this->haveData('title') != wfMsgForContent('mainpage')){ ?>
<h1 class="firstHeading"><?php $this->text('title') ?></h1>
<?php } ?>


In 1.9.2, the MonoBook.php file looks a bit different, and I'm hoping 
someone can help make a similar hack for this newest version.  Again, 
I'd only like to remove the page title for the Main Page, but no 
others.  The code in MonoBook.php is listed below:

<h1 class="firstHeading"><?php 
$this->data['displaytitle']!=""?$this->html('title'):$this->text('title') 
?></h1>

Thanks for any help!

-Rich



More information about the MediaWiki-l mailing list