List Info

Thread: How to change "Main Page" displayed on home page?




How to change "Main Page" displayed on home page?
user name
2006-11-26 20:09:24
Thanks. This is probably the correct approach. But how do we
escape  
the curly brackets? After I edited Monobook.js to include
this code  
and the loaded the home page and did a "view
source", it showed that  
the script's document.write ends after the ending curly
bracket on  
the style.

Tim

> Another option is to disable the display of the
"Main Page" header on
> the Main Page only. That should allow you to place any
other  
> heading on
> the page that you like, without actually changing the
name of the  
> page.
> To do this, edit the page MediaWiki:Monobook.js and add
the following
> text:
>
>
> if (isMainPage && !isDiff)
> {
> document.write('<style
type="text/css">/*<![CDATA[*/ #lastmod,  
> #siteSub,
> #contentSub, h1.firstHeading { display: none
!important; }
> /*]]>*/</style>'); }



_______________________________________________
MediaWiki-l mailing list
MediaWiki-lWikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )