FANDOM


Line 14: Line 14:
   
 
::Thanks! Just wondering, but is it also possible to remove a header of your choice from the TOC by using a Magic Word? ---'''''[[User:Zantam03|<span style="color:Black;">Zantam03</span>]]'''''<sup> '''''([[User talk:Zantam03|<span style="color:Black;">Talk</span>]])'''''</sup> 15:25, 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? ---'''''[[User:Zantam03|<span style="color:Black;">Zantam03</span>]]'''''<sup> '''''([[User talk:Zantam03|<span style="color:Black;">Talk</span>]])'''''</sup> 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. ~ [[User:Flightmare|Flightmare]] 16:15, May 2, 2012 (UTC)

Revision as of 16:15, May 2, 2012

Forums: Index Support Requests Can I remove level 1 headers from TOC?
FANDOM's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.

50px-Replacement filing cabinet.svg

Note: This topic has been unedited for 2990 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


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)
Community content is available under CC-BY-SA unless otherwise noted.