How do I hide the main page title

Use this forum to ask questions about how to do things in GuMax skin.

How do I hide the main page title

Postby Paul » October 23rd, 2007, 9:53 pm

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
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

Postby poveyjo » April 12th, 2008, 6:13 pm

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

Re: How do I hide the main page title

Postby Paul » April 13th, 2008, 10:53 pm

This one doesn't work for you?
Code: Select all
body.page-Main_Page h1.firstHeading { display:none; }
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

Postby poveyjo » April 14th, 2008, 3:39 am

hi,

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

Thanks
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

Postby Paul » April 16th, 2008, 12:16 am

Put it in css file gumax_template.css
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

Postby poveyjo » April 16th, 2008, 4:39 am

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

Re: How do I hide the main page title

Postby Paul » April 17th, 2008, 7:47 am

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
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

Postby poveyjo » April 17th, 2008, 6:01 pm

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

Re: How do I hide the main page title

Postby Paul » April 22nd, 2008, 10:31 pm

I think my old version might has bug for this :( .
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

Postby grugnir » May 20th, 2012, 12:14 pm

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 ... :?
User avatar
grugnir
Rank 0
Rank 0
 
Posts: 1
Joined: May 20th, 2012, 11:59 am

Next

Return to GuMax 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron