Topic on Manual talk:FAQ

MW 1.22 breaks the FAQ item "How do I hide the main page title"

12
Summary by Ciencia Al Poder

There's a better method described now

Peculiar Investor (talkcontribs)
Dantman (talkcontribs)

Try this instead of display: none;:

<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">...</span>

It's the standard method of visually hiding text while leaving it readable by screen readers, etc...

Kghbln (talkcontribs)

Thank you for this hint. Works perfect! This is the "exended" version:

{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
Kghbln (talkcontribs)

Is there a specific reason to duplicate the clip: rect(1px 1px 1px 1px); part of the CSS? I found it equally working in ommitting the second lot.

Dantman (talkcontribs)
Kghbln (talkcontribs)

Great, thank you for the info and the interesting link. A feeling told me that it could be a compat thing. I added this information to the FAQ page. Cheers

Speshuljake (talkcontribs)

Is there any way to remove the horizontal rule? I figure there must be, since wikipedia doesn't have it on their homepage, but I can't figure it out.

121.220.97.150 (talkcontribs)

They hide it with the CSS method, which the manual falsely states no longer works.

Jan.Archer (talkcontribs)

W want to have a few landing pages that don't sow the Page Title so I have tried the CSS method to get rid of the horizontal rule, but no luck. I'm running MW 1.23.1 on a IIS web server.

I've included this as the first line in my content page: .

I've also include this in my LocalSettings.php file:

$wgRestrictDisplayTitle = false; $wgAllowDisplayTitle = true;

Anyone have any luck getting rid of the rule??? Thanks for any help!

108.35.44.4 (talkcontribs)

Add this to Mediawiki:Common.js

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

Ciencia Al Poder (talkcontribs)

I think you mean Mediawiki:Common.css :)

This post was hidden by Ciencia Al Poder (history)