How do I hide the main page title

Use this forum to ask questions about how to do things in GuMax skin.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

How do I hide the main page title

Post 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.
User avatar
poveyjo
Rank 2
Rank 2
Posts: 10
Joined: April 12th, 2008, 6:07 pm

Re: How do I hide the main page title

Post 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
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I hide the main page title

Post by Paul »

This one doesn't work for you?

Code: Select all

body.page-Main_Page h1.firstHeading { display:none; }
User avatar
poveyjo
Rank 2
Rank 2
Posts: 10
Joined: April 12th, 2008, 6:07 pm

Re: How do I hide the main page title

Post by poveyjo »

hi,

sorry I'm not sure exactly where I should be putting that line...?

Thanks
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I hide the main page title

Post by Paul »

Put it in css file gumax_template.css
User avatar
poveyjo
Rank 2
Rank 2
Posts: 10
Joined: April 12th, 2008, 6:07 pm

Re: How do I hide the main page title

Post 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
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I hide the main page title

Post 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.
User avatar
poveyjo
Rank 2
Rank 2
Posts: 10
Joined: April 12th, 2008, 6:07 pm

Re: How do I hide the main page title

Post 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
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do I hide the main page title

Post by Paul »

I think my old version might has bug for this :( .
User avatar
grugnir
Rank 0
Rank 0
Posts: 1
Joined: May 20th, 2012, 11:59 am

Re: How do I hide the main page title

Post 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 ... :?
Post Reply