Font Awesome Icons use inside titles for XFMG

oO5 Dynasty

Well-known member

Would be amazing if we were able to add Html code to the titles of our XFMG
This would give us the option to add Font Awesome code to give the links a little more pop.
I do this on the splash page of my website and it gives my navigation more pop. :)
Font Awesome Icons use inside titles for XFMG.webp
 
Upvote 0
A bit of a fragile solution, but you might be able to accomplish this via extra.less:

Less:
html[data-template="xfmg_media_index"] 
{ 
    .categoryList-link[href$=".1/"]::before 
    { 
        .m-faBase(); 
        .m-faContent(@fa-var-paperclip); 
    } 
}

You would need to change the 1 to the ID of the category you want to add an icon to, and paperclip to the name of the icon you want to use. You can duplicate the inner selector as needed to apply icons to multiple categories.
 
A bit of a fragile solution, but you might be able to accomplish this via extra.less:

Less:
html[data-template="xfmg_media_index"]
{
    .categoryList-link[href$=".1/"]::before
    {
        .m-faBase();
        .m-faContent(@fa-var-paperclip);
    }
}

You would need to change the 1 to the ID of the category you want to add an icon to, and paperclip to the name of the icon you want to use. You can duplicate the inner selector as needed to apply icons to multiple categories.
Ty I will give it a try
 
Top Bottom