XF 2.3 Adding Fontawesome to nav

Seeker-Smith

Well-known member
There must be a better way to do this. Suggestions?

I've added a menu item Account to my menu bar. I also want to add a icon.
Screen Shot 2025-08-29 at 11.33.08 AM.webp

The result works.
Screen Shot 2025-08-29 at 11.34.23 AM.webp
But it messes up the the parent navigation entry.
Screen Shot 2025-08-29 at 11.35.45 AM.webp
 
Solution
Add the icon to the phrase. I'm not sure Account is a standard navigation item, maybe from an addon but the same applies. You can edit the phrase.

Screenshot 2025-08-29 at 16.47.10.webp


See here:


Otherwise there are addons to add icon to navigation

Add the icon to the phrase. I'm not sure Account is a standard navigation item, maybe from an addon but the same applies. You can edit the phrase.

Screenshot 2025-08-29 at 16.47.10.webp


See here:


Otherwise there are addons to add icon to navigation

 
Solution
Add the icon to the phrase. I'm not sure Account is a standard navigation item, maybe from an addon but the same applies. You can edit the phrase.

View attachment 326288


See here:


Otherwise there are addons to add icon to navigation

Thanks for the ideas. I found a simple solution using extra.less

&[data-nav-id='account']:before {.m-faContent(@fa-var-user); padding-right: 5px;}
 
Back
Top Bottom