RE: Liferay 7.1 - how to change default favicon

Davide del Vecchio, geändert vor 6 Jahren. Junior Member Beiträge: 27 Beitrittsdatum: 05.09.19 Neueste Beiträge
I need to put a new favicon, in which folder should I put my custom favicon?
thumbnail
Alfonso Crisci, geändert vor 6 Jahren. Regular Member Beiträge: 136 Beitrittsdatum: 02.04.14 Neueste Beiträge
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, geändert vor 6 Jahren. Junior Member Beiträge: 27 Beitrittsdatum: 05.09.19 Neueste Beiträge
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, geändert vor 6 Jahren. Regular Member Beiträge: 136 Beitrittsdatum: 02.04.14 Neueste Beiträge
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, geändert vor 6 Jahren. Junior Member Beiträge: 27 Beitrittsdatum: 05.09.19 Neueste Beiträge
I don't have a custom theme, can I edit the standard one?
thumbnail
ANKIT SRIVASTAVA, geändert vor 6 Jahren. Junior Member Beiträge: 76 Beitrittsdatum: 02.02.11 Neueste Beiträge
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, geändert vor 6 Jahren. Junior Member Beiträge: 27 Beitrittsdatum: 05.09.19 Neueste Beiträge
> 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, geändert vor 6 Jahren. Regular Member Beiträge: 136 Beitrittsdatum: 02.04.14 Neueste Beiträge
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, geändert vor 6 Jahren. Junior Member Beiträge: 27 Beitrittsdatum: 05.09.19 Neueste Beiträge
Thank you, the non-recommended solution worked fine.