Topic on Project:Support desk

Jump to navigation Jump to search

[RESOLVED] SubSidebar does not expand

12 (talkcontribs)


After upgading to MediaWiki 1.22 the links under the sections in the Sidebar became automaticly hidden under the headings. I would like the sections to be open and not hidden. Is this possible? JJ (talkcontribs)


That is the collapsible navigation feature, which in 1.22 is integrated into the Vector skin. Formerly it was part of the Vector extension. With the extension you could disable collapsing with

$wgVectorFeatures['collapsiblenav']['global'] = false;

Does that also work with the skin? (talkcontribs)

This is not working! (talkcontribs)

I have just checked the according commit

and it does not look like there would be an option to disable this feature.

A nice way would be if it was possible to modify $out->addModules() as you can do with the new hook for $out->addModuleStyles(), however for addModules() I have not seen a hook.

One option might be to add this to the bottom of LocalSettings.php:


This should prevent the skin from loading the collapsiblity-stuff (untested). (talkcontribs)

This did not work.

Ciencia Al Poder (talkcontribs)

You could modify it with CSS (see Manual:Interface/Stylesheets). Each sidebar section has a element with a specific ID. You can use CSS to control the format, for example, force the display of the contents:

This example forces the content to be displayed always, for the Print/export element of the sidebar:

/* force the display of the contents of the section */
#p-coll-print_export  .body {
	display:block !important;
/* Option 1: hide the header */
#p-coll-print_export h3 {
/* Option 2: just hide the arrow in the header */
#p-coll-print_export h3 {
	background:none !important;
} (talkcontribs)

Thanks Ciencia. This work for the print_export section only, using the /* force the display, but could not get it to work on the other section. Do you know where I find the specific ID for the other section I'm using in my wiki at ? JJ (talkcontribs)

View the source code of the page and search for "p-coll-".

DavisNT (talkcontribs) (talkcontribs)

any way to reverse the effect of your code, and return to default?

Thanks (talkcontribs)

Remove code from LocalSettings.php and empty the cache dir.

Reply to "[RESOLVED] SubSidebar does not expand"