Forum:Can I remove level 1 headers from TOC?

Hello all, I was wondering if it's possible to remove level 1 headers from the table of contents? If yes, how? --- Zantam03 ( Talk ) 14:37, May 2, 2012 (UTC)


 * I guess the no-brainer method would be:

 .toclevel-1 > a {display:none;} .toclevel-1 > ul {margin-left: 0 !important;}
 * in your desired style sheet page, but this still leaves the subsections with the 1.1, 1.2, 1.2.1, etc. prefixes. Some JavaScript would probably be required to exclude the H1 headers from being added in the first place, as opposed to just hiding them with CSS. Sadly, I'm not a script wizard. — Sovq 15:05, May 2, 2012 (UTC)


 * Thanks! Just wondering, but is it also possible to remove a header of your choice from the TOC by using a Magic Word? --- Zantam03 ( Talk ) 15:25, May 2, 2012 (UTC)
 * I think that would be accomplished by putting the header in a div, and using a class that uses similar CSS formatting as in above example. ~ Flightmare 16:15, May 2, 2012 (UTC)


 * I'm sure you could find an appropriate CSS selector to hide any header in the toc on any page, but this only hides the headers and might cause inconsistencies in the list of contents. I'm not aware of any magic words that would do that though. — Sovq 19:04, May 2, 2012 (UTC)