Topic on Manual talk:FAQ

ElectricRay (talkcontribs)

Hi - The code suggested in the current version of this page:

body.mainpage.action-view h1.firstHeading, body.mainpage.action-submit h1.firstHeading { display: none; }

didn't work for me, even though I have the latest version of MediaWiki and haven't futzed around with the pages.

Now I was googling around and I found a post from a 2007 edit of this page which provides the following code to be pasted into the Mediawiki:Common.css:

body.page-Main_Page h1.firstHeading { display: none; }

This has worked for me. I'm no computer whiz so I haven't updated the article, but I thought I'd mention it.

This post was hidden by Ciencia Al Poder (history)
Ciencia Al Poder (talkcontribs)

The current CSS rule requires that MediaWiki:Mainpage is set correctly, and it should work that way. The current rule ensures it will work for wikis in other languages than English and where the main page has been changed to be at another title.

ElectricRay (talkcontribs)
Ciencia Al Poder (talkcontribs)

Be sure MediaWiki:Mainpage contains the title of your main page. That's the page it will redirect you whenever you access your wiki without specifying a page (accessing index.php directly)

Ciencia Al Poder (talkcontribs)

I was wrong and the body.mainpage class never existed on MediaWiki core, that only works here because of a gadget. The FAQ entry has been updated.

This post was hidden by Ciencia Al Poder (history)