简体   繁体   中英

How to insert font awesome in a liferay's custom theme?

How can I insert and use font awesome 4 in a Liferay's 7.2 custom theme?

I saw in Liferay's portal dev that by selecting: Control Panel → Configuration → System Settings → Third Party, I could find a Font Awesome option, but that option is not in my panel.

Also in this tutorial it is explained how to use font awesome 3, but nothing about version 4.

By default, Liferay use Font Awesome v3.2.1 . I don't know if there is a way to change it.

If you want to use another version, then I suggest to add it in package.json file of your theme . It'll be the fastest and efficient way to add/customize the dependencies you want.

If you are okay with this solution, just don't forget to disable Font Awesome v3.2.1 to improve performance of your portal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM