XF 2.1 Remove subforums from forum list (mobile)

Sentenza

Member
Hello,

I need the right code for the extra.less to disable the subforums only from the forum list. My code works, but on my mobile phone (iPhone XS) in portrait format, or when I reduce the Safari browser window, the subforums will appear again.

Code:
[data-template="forum_list"]
.node-subNodesFlat
{
display: none;
}

Thanks!
 
Solution
Its's done using CSS but the code I posted should override it.

Try using !important.

CSS:
[data-template="forum_list"]
{
    .node-subNodesFlat,
    .node-subNodeMenu
    {
        display: none !important;
    }
}
Back
Top Bottom