Topic on Project:Support desk

removing sidebar permanently from all wiki pages.

6
Rishi.comm (talkcontribs)

Hello,

I am using the below configs : Mediwiki - 1.17.0 PHP - 5.3.5 My SQL 5.5.16

Sir, i am using the vector skin and want to remove the sidebar and its content permanently from all pages. Also want to take up the articles' content width 100% (important)

Anyone Please help

Krinkle (talkcontribs)

You can do so by adding something like the following to your wiki's MediaWiki:Vector.css page.

/** Hide sidebar **/
div#mw-panel {
  display: none;
}
#left-navigation {
  left: 1em;
}
#mw-head-base,
div#content,
div#footer {
  margin-left: 1em;
}

Note however that, if you do this, you'll lose the logo as well.

Rishi.comm (talkcontribs)

Thank You so much Dear Krinkle :):)

Thomas1311 (talkcontribs)

I had the same problem. Thank You
--Thomas1311 (talk) 12:50, 6 January 2013 (UTC)

171.79.103.21 (talkcontribs)

I applied media queries to remove the sidebar only from small screens but it does not work.

The code works but stops working when a media query is applied on big screen too.

Could there be a workaround for this?

Kakha13 (talkcontribs)

I am hiding left bar and fixing some menus for mobile devices @media only screen and (max-width: 600px) {

div#mw-panel {
  display: none;
}
#left-navigation {
  left: 1em;
  margin-left:1em;
}
#mw-head-base,
div#content,
div#footer,.mw-footer {
  margin-left: 1em;
}
#p-personal ul {
    padding-left: 0;
}
.infobox {
	float: none;
    width: 100%;
    margin: 0;
}
}

Reply to "removing sidebar permanently from all wiki pages."