XF 2.1 How do I hide child nodes from the homepage. v2.1.4

I only want to display the main forums, and I want child nodes to be only inside their parent forums. v2.1.4
 

Attachments

  • FORUM.webp
    FORUM.webp
    31.3 KB · Views: 39
Admin Control Panel - Appearance - Templates - search for extra.less template and paste CSS above into it.

That worked however, with CSS code it only hid child nodes of a child node. So main forum is still on homepage and child nodes are as well.

However, Child node of a already child node is inside the forum.

SEE ATTACHED

That CSS code got rid of CHILD CHILD NODE and put inside the CHILD NODE

How do I put the Child nodes inside where they belong?
 

Attachments

  • FORUM (1).webp
    FORUM (1).webp
    29 KB · Views: 12
Would need to see your site, because the code needed would be different depending on how you setup your nodes. Categories/Forums/sub Forums/etc. Post a url or message it to me if you want me to look at it further.
 
It looks like on that theme you would use:

CSS:
.node--depth2 {
    display: none !important;
}

This may not be the best way to display your forums since so much will be hidden on the forum home.

Have you thought about a columned list that is responsive?

Try this code below (maybe need to use default theme, not sure it will work with your current one):
Code:
.node-subNodeFlatList {
    >li {
        display: inline-block;
        margin-right: 0;
        float: left;
        width: 50%;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
        white-space: nowrap;
    }
}


Just another option, since you are new to this.
 
Back
Top Bottom