XF 2.3 Hiding forum details for certain IDs

Anatoliy

Well-known member
Howdy!

I'd like to change the way some forums are displayed on the home page (forum list?). I'd like the 'forum name' and 'Threads: xxx' to stay, but 'Posts: xxx', 'Last post', it's date and username to be hidden for some forums. I guess it's about conditional in customs.css and that 'display:hidden' thing, but I'm not sure how to do it correctly. Please advice.

@Old Nick are you still around? I remember you are a ninja in these things.
 
Hello, in extra.less template just target the node you want to custom by this ID, like:
Less:
.node.node--id2
{
    .node-extra, .node-stats>dl.pairs.pairs--rows:last-child
    {
        display: none;
    }
}
 
Thanks! I need to apply it to 10 forums. Can I use an array of ids? Something like
Code:
.node.node--id[2,7,9,21,...]
{
...
}
.
Or I should do
Code:
.node.node--id2, .node.node--id7, .node.node--id9, ...
{
...
}
 
Code:
.node.node--id2, .node.node--id3
{
    .node-extra, .node-stats>dl.pairs.pairs--rows:last-child
    {
        display: none;
    }
}

This one does work. However it hides for desktops only only. 'Messages:xxx' still there on a mobile.
 
Back
Top Bottom