Hiding the Main Page title (revisited)

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
robw92
Rank 0
Rank 0
Posts: 4
Joined: June 24th, 2009, 9:13 pm

Hiding the Main Page title (revisited)

Post by robw92 »

Since the previous thread on this subject over a year old, I thought I would ask if any new (working) solutions had been found for this problem. I'm using mediwiki 1.15 and gumaxdd. Thanks.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Hiding the Main Page title (revisited)

Post by Paul »

Try open file gumax_template.css and find this:

.gumax-firstHeading {
...
}

Add "display:none;" ...
User avatar
robw92
Rank 0
Rank 0
Posts: 4
Joined: June 24th, 2009, 9:13 pm

Re: Hiding the Main Page title (revisited)

Post by robw92 »

Worked perfectly. Thanks :)
User avatar
krabina
Rank 4
Rank 4
Posts: 20
Joined: June 8th, 2009, 7:14 am

Re: Hiding the Main Page title (revisited)

Post by krabina »

also worked for me, but hides every page title on every page. If you just want to hide "Main Page" on the certain pages, you can use the following extension: http://www.mediawiki.org/wiki/Extension:NoTitle

I used the code for MediaWiki 1.13 and changed the line
$page->mScripts .= "<style type='text/css'>h1.firstHeading { display:none; } </style>";
to
$page->mScripts .= "<style type='text/css'>.gumax-firstHeading { display:none; } </style>";

Then you add __NOTITLE__ on the pages where you want to hide the title and you are done.

Worked for me on MedaWiki 1.14.0

-Bernhard
Post Reply