RE: Liferay 7.1 - how to change default favicon

Davide del Vecchio, modificat fa 6 anys. Junior Member Apunts: 27 Data d'incorporació: 05/09/19 Publicacions recents
I need to put a new favicon, in which folder should I put my custom favicon?
thumbnail
Alfonso Crisci, modificat fa 6 anys. Regular Member Apunts: 136 Data d'incorporació: 02/04/14 Publicacions recents
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, modificat fa 6 anys. Junior Member Apunts: 27 Data d'incorporació: 05/09/19 Publicacions recents
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, modificat fa 6 anys. Regular Member Apunts: 136 Data d'incorporació: 02/04/14 Publicacions recents
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, modificat fa 6 anys. Junior Member Apunts: 27 Data d'incorporació: 05/09/19 Publicacions recents
I don't have a custom theme, can I edit the standard one?
thumbnail
ANKIT SRIVASTAVA, modificat fa 6 anys. Junior Member Apunts: 76 Data d'incorporació: 02/02/11 Publicacions recents
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, modificat fa 6 anys. Junior Member Apunts: 27 Data d'incorporació: 05/09/19 Publicacions recents
> 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, modificat fa 6 anys. Regular Member Apunts: 136 Data d'incorporació: 02/04/14 Publicacions recents
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, modificat fa 6 anys. Junior Member Apunts: 27 Data d'incorporació: 05/09/19 Publicacions recents
Thank you, the non-recommended solution worked fine.