TAB ICON

Post Reply
leacardenas
Posts: 29
Joined: 24 Aug 2016, 18:52

24 Aug 2016, 18:57

Hello,

I have bought the Modena Template for primefaces. But I have a little issue.

I cannot add a favicon to the tab. I have tried with several codes and none of them work. I have search for help but nothing seems to work.

For Example:

<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" library="modena-layout"/>

Please if someone knows how to, can lend me a hand.

Regards

User avatar
aragorn
Posts: 3056
Joined: 29 Jun 2013, 12:38

29 Aug 2016, 08:48

<link> tag doesn't have library attribute; http://www.w3schools.com/tags/tag_link.asp

Exp;
in template.xhtml

Code: Select all

<h:head>
    <f:facet name="first">
        ...
        <link rel="shortcut icon" type="image/png" href="#{request.contextPath}/resources/main/images/favicon.png" />
    </f:facet>
    ....
</h:head>
Path: primefaces-showcase(project) > src > main > webapp > resources > main > images > favicon.png

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest