XF 2.1 Where to edit forum message balloons?

pk698

Active member
See my attachment. I'm trying to make an icon that's more specific to our community, and I'm not sure where to edit/ or add my own icon.

Thank you.



icon.webp
 
Those are FA icons which are defined in the node_list.less template using:

Less:
.node--forum &:before,
        .node--category &:before
        {
            .m-faContent(@fa-var-comments);
        }

        .node--page &:before
        {
            .m-faContent(@fa-var-file-alt);
        }

        .node--link &:before
        {
            .m-faContent(@fa-var-link);
        }

You can edit the less template and change the FA icons to something else, or use the extra.less template to override them.

I edited the template and changed mine to the comments-alt icon.
Less:
.node--forum &:before,
.node--category &:before
{
    .m-faContent(@fa-var-comments-alt);
}

You will also have to change the sub node icon.
1582219404757.webp
 
Yipes.... that looks complicated. ... :sick:

Isn't it just a gif or jpeg file? Where is it stored in the directory on the server? I can just overwrite it with my own icon (with the same name but just a different image), it seems easier that way.
 
It's really not complicated I actually changed to different ones for different forums, it's simple CSS in extra.less, just paste what he posted and use the icon code you like from:
 
Can seem to get mine to change to "envelope" for sub nodes

.subNodeLink-icon
{
text-decoration: none;
}
}

&.subNodeLink--unread
{
font-weight: @xf-fontWeightHeavy;

&:before,
.subNodeLink-icon
{
color: @xf-nodeIconUnreadColor;
}
}

&.subNodeLink--category:before
{
.m-faContent(@fa-var-envelope);
}

&.subNodeLink--page:before
{
.m-faContent(@fa-var-envelope);
}

&.subNodeLink--link:before
{
.m-faContent(@fa-var-envelope);
}

&.subNodeLink--search::before
{
.m-faContent(@fa-var-envelope);
}
}
 
There are some AddOns which can do this, for instance one of my ones.

 
Back
Top Bottom