Message Boards

Liferay 7.1 - how to change default favicon

Davide del Vecchio, modified 4 Years ago.

Liferay 7.1 - how to change default favicon

Junior Member Posts: 27 Join Date: 9/5/19 Recent Posts
I need to put a new favicon, in which folder should I put my custom favicon?
thumbnail
Alfonso Crisci, modified 4 Years ago.

RE: Liferay 7.1 - how to change default favicon

Regular Member Posts: 136 Join Date: 4/2/14 Recent Posts
Ciao Davide,
You have a way to change it on portal-level from the UI: left Product Menu > Control Panel > Configuration > Instance Settings > Miscellaneous > Logo
Or from the theme: src/images/favicon.ico
Davide del Vecchio, modified 4 Years ago.

RE: Liferay 7.1 - how to change default favicon

Junior Member Posts: 27 Join Date: 9/5/19 Recent Posts
I've tryied from Control Panel but the logo in Chrome tab remains the same.

​​​​​​​

I need to put my custom icon there.
thumbnail
Alfonso Crisci, modified 4 Years ago.

RE: Liferay 7.1 - how to change default favicon

Regular Member Posts: 136 Join Date: 4/2/14 Recent Posts
Hi Davide, sorry for the confusion, only site logo can be changed from Control Panel. Favicon Will be changed from custom theme: src/images/favicon.ico
Davide del Vecchio, modified 4 Years ago.

RE: Liferay 7.1 - how to change default favicon

Junior Member Posts: 27 Join Date: 9/5/19 Recent Posts
I don't have a custom theme, can I edit the standard one?
thumbnail
ANKIT SRIVASTAVA, modified 4 Years ago.

RE: Liferay 7.1 - how to change default favicon

Junior Member Posts: 76 Join Date: 2/2/11 Recent Posts
Ideally, you should not do this change in the default theme. It's better to have a custom theme and apply this change. 
Davide del Vecchio, modified 4 Years ago.

RE: Liferay 7.1 - how to change default favicon

Junior Member Posts: 27 Join Date: 9/5/19 Recent Posts
> Ideally, you should not do this change in the default theme.
But how can I do it?

>It's better to have a custom theme and apply this change. 
Can you link me some documentation?

​​​​​​​Thanks
thumbnail
Alfonso Crisci, modified 4 Years ago.

RE: Liferay 7.1 - how to change default favicon

Regular Member Posts: 136 Join Date: 4/2/14 Recent Posts
As Ankit is saying, the best way would be through a custom theme, but Olaf replied once on the same topic and explained about another (not suggested) alternative, https://stackoverflow.com/a/53360453:

"As an extreme, non-recommended, quickfix you might want to set the value in portal-ext.properties to theme.shortcut.icon=../../../myfavicon.ico and place a favicon with name myfavicon.ico in tomcat's webapps/ROOT/myfavicon.ico.
But don't come crying later, when you accidentally overwrite it in an upgrade."
Davide del Vecchio, modified 4 Years ago.

RE: Liferay 7.1 - how to change default favicon

Junior Member Posts: 27 Join Date: 9/5/19 Recent Posts
Thank you, the non-recommended solution worked fine.