barcelona theme- font awesome

UI Components for JSF
Post Reply
hayan.alyoussef
Posts: 1
Joined: 28 Mar 2017, 12:17

12 Feb 2018, 14:50

hello
as you may have noticed font awesome has been updated and some new icons has been added, so how can i include the new version in my Barcelona theme

thank you in advance

huseyinT
Posts: 123
Joined: 27 Mar 2016, 13:05

13 Feb 2018, 14:43

Hi, you should do following steps:

- In the web.xml, do 'false' the font-awesome.

Code: Select all

<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>false</param-value>
</context-param>
- I added script and link from font-awesome cdn v5.0.6 in the template.xhtml :

Code: Select all

 
 <script src="https://use.fontawesome.com/releases/v5.0.6/v4-shims.js"></script>
 <link  type="text/css" href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet" />
 <script  src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
Example result:
Image

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

18 Feb 2018, 21:43

Please use Barcelona Forum for your next issue;
viewforum.php?f=53

Regards,

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 55 guests