XF 2.1 Remove avatars alongside thread list

Yes, you can use a conditional statement, more on that here:


I tried to add this in extra.less but it doesn't work.

(showing the code, i.e. removing avatars in thread list, for nodes 1,2 and 3 only)

Less:
<xf:if is="in_array({$forum.node_id}, [1,2,3])">
    .structItem-cell.structItem-cell--icon
    {
        display: none;
    }
</xf:if>
 
I tried to add this in extra.less but it doesn't work.

(showing the code, i.e. removing avatars in thread list, for nodes 1,2 and 3 only)

Less:
<xf:if is="in_array({$forum.node_id}, [1,2,3])">
    .structItem-cell.structItem-cell--icon
    {
        display: none;
    }
</xf:if>
No I don’t think it’s quite as simple as that

I think it can be done by using a custom css template then call the into the actual template you want it applied

Code:
<xf:css src="template_name.less" />

then add the conditional to that.
 
I tried to add this in extra.less but it doesn't work.

(showing the code, i.e. removing avatars in thread list, for nodes 1,2 and 3 only)

Less:
<xf:if is="in_array({$forum.node_id}, [1,2,3])">
    .structItem-cell.structItem-cell--icon
    {
        display: none;
    }
</xf:if>
Another thing you can do is create another style, and have it as a style override in the forum settings you want that css to apply to
 
Hello everyone.

I want to change avatars on the left side, maybe if it's possible to add one avatar for all topics or if it's not possible to remove avatars. I'll probably use Xenfocus themes Dimension or Illuminate but it's seems the are similar to default Xenforo theme, concept is the same.

xenforomod.jpg

Maybe to use buttons like this to be connected with last post not to topic author.
buttonsxen.jpg
 
Last edited:
Top Bottom