Want to use FontAwesome
I'd like to use FontAwesome for icons in my menus. I added
// Here you can specify additional assets you would like to be included in the master.blade 'additional_css' => [ //'css/custom.css', 'css/font-awesome.min.css' ],
with the font-awesome.min.css in my public/css folder. In the menu builder, I specified fa-cubes as the Font Icon Class for the menu item but I just get a square like it's not recognized. Are there other modifications I need to make?
Ok, thanks for the response. It led me to experiment with some things and eventually figure it out. For others who may have a similar question... There are 2 ways to include font awesome.
- Use their CDN. They provide a link to a js file and you can put that in the config/voyager.php in the "additional_js" at the bottom.
- Download it. Put the font-awesome.min.js in your public/css directory. Put the "fonts" folder provided in the font awesome download next to the "css" folder so you'll have public/fonts.
Then, in the admin UI, use "fa fa-xxxx" for the icon class instead of the voyager class. For example, in the "Font icon class for the menu item" field of the menu editor, I have "fa fa-cube". The main part that I overlooked was that I needed to include the "fa" as well as the "fa-cubes" identifier.
Thanks for your help. I hope this saves someone else a little time. :)
cheers marty solved my issue brillant solve