Page 1 of 2
How do I hide the main page title
Posted: October 23rd, 2007, 9:53 pm
by Paul
MediaWiki does not have a built-in option to hide the main page title. Instead you must use JavaScript or CSS.
In 1.9 and above, you can rely on CSS to hide it. Replace "Main_Page" with the appropriate page name, here with spaces replaced by underscores.
Code: Select all
body.page-Main_Page h1.firstHeading { display:none; }
If that doesn't work, look at the HTML source code to find the correct class to replace "page-Main_Page" with:
Code: Select all
<body class="mediawiki ns-0 ltr page-Some_title">
If no such class exists, then you cannot use this feature. You may be using a custom or outdated skin.
Re: How do I hide the main page title
Posted: April 12th, 2008, 6:13 pm
by poveyjo
Hi, I'm using Mediawiki 1.10.1 with Gumax 3.0, and I can't quite figure out these instructions to hide the main page title.
Can someone explain *exactly* what I need to do? Where do I put that CSS?
Many thanks
Re: How do I hide the main page title
Posted: April 13th, 2008, 10:53 pm
by Paul
This one doesn't work for you?
Code: Select all
body.page-Main_Page h1.firstHeading { display:none; }
Re: How do I hide the main page title
Posted: April 14th, 2008, 3:39 am
by poveyjo
hi,
sorry I'm not sure exactly where I should be putting that line...?
Thanks
Re: How do I hide the main page title
Posted: April 16th, 2008, 12:16 am
by Paul
Put it in css file gumax_template.css
Re: How do I hide the main page title
Posted: April 16th, 2008, 4:39 am
by poveyjo
I don't have that file, but I do have ycgu_template.css
I put it in there, but the Main Page text still shows up....?
Many thanks
Re: How do I hide the main page title
Posted: April 17th, 2008, 7:47 am
by Paul
Follow the instruction here:
http://paulgu.com/wiki/Manual:FAQ
If you still cannot figure it out, try to hire someone to do it for you.
Re: How do I hide the main page title
Posted: April 17th, 2008, 6:01 pm
by poveyjo
I already saw that FAQ, as well as the main mediawiki FAQ on this subject. I had previously managed to hide the main page title using monobook and those FAQs, but the same methods didn't work in your template.
Thanks anyway
Re: How do I hide the main page title
Posted: April 22nd, 2008, 10:31 pm
by Paul
I think my old version might has bug for this
.
Re: How do I hide the main page title
Posted: May 20th, 2012, 12:14 pm
by grugnir
FWIW, putting
Code: Select all
body.page-Main_Page .gumax-firstHeading { display:none; }
into the /skins/gumaxdd/gumax_template.css file at about line 254 in the GuMaxDD v1.0 skin
gets the job done. Line 254 is right after
Code: Select all
/* article title */
.gumax-firstHeading {
font-weight: bold;
font-size: 200%;
color: #000;
padding-bottom: 2px;
}
(assuming you haven't fiddled too much with the code already). Not sure how much help that will be to this particular situation, but there it is anyway. I figured this out through
brute force and JD.
don't ask ...