XF 2.2 Only show specific forum in category page, not home page?

Luke247

Member
My home page has multiple categories and multiple forums under each category, however I want to hide some of these forums from the home page yet still show them in the category page. How can I achieve this?
 
This is one way of doing it.

Add this to the extra.less template - specify the node IDs, comma separated, as required;
Less:
[data-template="forum_list"]
{
    .node--id
    {
        &2,
        &4,
        &8
        {
            display: none;
        }      
    }
}

The node IDs can be obtained from the ACP -- admin.php?forums/main-forum.2/edit -- or via the browser inspector:

1629400805128.webp
 
This is one way of doing it.

Add this to the extra.less template - specify the node IDs, comma separated, as required;
Less:
[data-template="forum_list"]
{
    .node--id
    {
        &2,
        &4,
        &8
        {
            display: none;
        }     
    }
}

The node IDs can be obtained from the ACP -- admin.php?forums/main-forum.2/edit -- or via the browser inspector:

View attachment 256487
Thank you! And, how do I remove a forum from a category page while having it still display on my home page?
 
Top Bottom