1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Hide subforums from forum list

Discussion in 'Styling and Customization Questions' started by dehness, Apr 26, 2015.

  1. dehness

    dehness Active Member

    Hi,

    I would like to hide a number of subforums from the main forum list, while still maintain the subforum links when inside the forum.

    If I uncheck "Display in the nodelist" it hides them completely. I only want to hide them from the main board (to reduce clutter).

    Thanks. :)
     
  2. Mike

    Mike XenForo Developer Staff Member

    Are you just wanting to get rid of the "sub-forums" menu in all cases? Or do you still need it to be there conditionally?
     
  3. dehness

    dehness Active Member

    Hi @Mike

    I need it to be there for some sections, but others which contain archive threads I want it hidden from the main board so its only accessible by clicking into its parent forum.

    I was hoping there would be some kind of CSS to just hide specific forums.
     
  4. Mike

    Mike XenForo Developer Staff Member

    I believe you could do:
    Code:
    .node_123 .subForumsPopup { display: none; }
    Adjust the 123 based on the node ID, repeat as needed.
     
    Veer and Andrej like this.
  5. dehness

    dehness Active Member

    Thanks @Mike worked great!
     
  6. electrogypsy

    electrogypsy Active Member

    i feel dumb asking, but i have my subforums in a list, not a popup, and i can't seem to find the right selector. can someone tell me what css selector to use for sub forums that are in a list, not a popup?
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Try replacing subForumsPopup with subForumList.
     
    electrogypsy likes this.
  8. electrogypsy

    electrogypsy Active Member

    I thought that was it as well, but when i use it like so:

    Code:
    .node_325 .subForumList {
       display: none;
    }
    it doesn't hide the sub-forum. if i do the .node_325 by itself it hides it, but also hides any other occurrence of that node.
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Try:
    Code:
    .subForumList .node_325
    {
        display: none
    }
     
    electrogypsy likes this.
  10. electrogypsy

    electrogypsy Active Member

    ah, yes, that did work! thank you so much for the help.
     

Share This Page