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

XF 1.2 Hide child node from index

Discussion in 'Styling and Customization Questions' started by Jamie Dabrowiecki, Jan 12, 2014.

  1. Jamie Dabrowiecki

    Jamie Dabrowiecki New Member

    Is there a way I can hide some of my child nodes from showing on the index?

    I know you can uncheck the box to show the node completely, but I still want it to show within the parent node.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can target them using CSS display:none, for example:
    Code:
    .node .subForumList li.node_34
    {
    display: none;
    }
    Use a browser inspection tool to check the node ID,
     
  3. Jamie Dabrowiecki

    Jamie Dabrowiecki New Member

    Which template would I be editing?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    EXTRA.css
     
  5. Jamie Dabrowiecki

    Jamie Dabrowiecki New Member

    No text like that is in my EXTRA.css - any ideas?
     
  6. Amaury

    Amaury Well-Known Member

    Put the code @Brogan gave you in there. It's intentionally blank by default because that's what it's for.
     
  7. Jamie Dabrowiecki

    Jamie Dabrowiecki New Member

    Does it matter where I place it?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    No.

    You will need a line of code for each node you want to hide, comma separated like so:
    Code:
    .node .subForumList li.node_34,
    .node .subForumList li.node_17,
    .node .subForumList li.node_23
    {
    display: none;
    }
    
     
    Jamie Dabrowiecki likes this.
  9. Jamie Dabrowiecki

    Jamie Dabrowiecki New Member

    Thanks Brogan :)
     

Share This Page