-
-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font-Awesome 5 #155
Comments
Hi @dgmarques |
It must have been a problem with SB-Admin2; it does not use MetisMenus' css classes, instead it has it's own, something about this whole thing was not working, pseudo-elements where not working properly (they would not change from 'angle-down' to 'angle-left' nor the other way around. What I did to get around this was not use pseudo-elements, but instead use FA-5 normally with SVG elements; for MetisMenu to work like this I edited it's javascript to instead of changing classes, it would find the SVG and change it's |
Same issue + using SBAdmin 2. I can get icons in the menu to work without pseudo elements, not with. |
Someone much smarter than me can probably come up with a more elegant solution, but here's something... I didn't want to edit metisMenu directly and updating the CSS for sbadmin had no effect. I added this JS instead to handle the show and collapse events:
And this is probably more appropriate in the sbAdmin repo, but this was the only Google result; so, cheers. |
@messyhair66 Can you share explicitly how to implement your solution? Where do you add that code? I'm having the same problem. |
I added it in the footer after including all of the regular dependencies inside of my document.ready function.
I also updated the angle down in the menu to be: |
@messyhair66 The script doesn't work with third-level menus. |
The code above did not work for me because metisMenu uses its own events for showing and hiding the menu and was eating the bootstrap events, at least that is what I understood from my debug session. I ended up using the following code (tested with metisMenu 2.7.7 and FontAwesome 5.0.13 SVG). This should work with any level of menu.
|
Hi guys,
I'm using
metismenu 2.7.1
insb-admin2
template.I'm having a lot of problems because i'm using font-awesome 5. Is it possible to update the Metis Menu with font-awesome 5? Would greatly appreciate it.
Thanks for your time!!
The text was updated successfully, but these errors were encountered: