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
Richard Kurz a écrit :
<?php if($this->haveData('title') != wfMsgForContent('mainpage')){ ?>
<h1 class="firstHeading"><?php $this->text('title') ?></h1> <?php } ?>
<?php if ( $this->data['title'] != wfMsgForContent('mainpage') ){ ?> ... <?php } ?>
"Alexis Moinet" alexis.moinet@fpms.ac.be wrote in message news:45E53DDF.3020208@fpms.ac.be... Richard Kurz a écrit :
<?php if($this->haveData('title') != wfMsgForContent('mainpage')){ ?>
<h1 class="firstHeading"><?php $this->text('title') ?></h1> <?php } ?>
<?php if ( $this->data['title'] != wfMsgForContent('mainpage') ){ ?> ... <?php } ?>
mediawiki-l@lists.wikimedia.org