Can you share what you put in extra.less to change a forum node icon? Thanks!Thanks, so I have some code rewriting to do.
Sure!Can you share what you put in extra.less to change a forum node icon? Thanks!
.node .node-icon svg
{
display: none;
}
.node.node--id2 .node-icon i:before
{
.m-faIcon(@fa-var-duotone-megaphone, 0.9em);
}
i want to guess this is a specificity issue where i want it to rotate, THEN animate...but it seems like its trying to do them both at the same time perhaps...idk if there is a way or not for something like that tho....experimenting around for fun a little.....seems like animations break transform:rotate?.....i found a way to kind of force it, but it halfway breaks the animation...feel like im missing something
Included how to replace individual forum node icons
Sorry for delay, now updatedI can't seem to get the forum node icons to change. The tutorial is for "categories" is that supposed to include forum nodes also?
I suggest you make a new thread to ask this as it's outside the scope of this resource guide.experimenting around for fun a little.....seems like animations break transform:rotate?.....i found a way to kind of force it, but it halfway breaks the animation...feel like im missing something
@Old Nick is there a way to use the "svg display none" code to only the applied icons, so default still show where we don't change them?
.node.node__idX .node-icon svg
{
display: none;
}
I can confirm it works:I guess...Less:.node.node__idX .node-icon svg { display: none; }
Depending on what exactly you want to do the easiest approach might be to change the field title toI want to add a FA icon to custom fields. For example: I have a custom field with the field title Telephone and I want to add fa-solid fa-phone before the word telephone. How do I do this?
{icon:fas::phone} Telephone
phone
, adjust as needed if not) could bedl[data-field="phone"] dt
{
.m-faBefore(@fa-var-solid-phone);
}
.m-faContent()
is deprecated...ish (it's an alias for backwards compatibility), you might want to update this to .m-faIcon()
Done thanks!.m-faContent()
is deprecated...ish (it's an alias for backwards compatibility), you might want to update this to.m-faIcon()
Updated.m-faContent
to.m-faIcon
Furthermore, even if.m-faContent
works correctly, as your resource only concerns XF 2.3 therefore the recommended syntax is rather.m-faIcon
for what concerns Font Awesome icons.
Merci beaucoup to Old Nick , sorry I missed that you'd spotted it first.
We use essential cookies to make this site work, and optional cookies to enhance your experience.