favicon module rewrite templates tomcat Jahia 8 Jahia 7.3

How to change the default favicon?

Question

Here are different ways to use your custom favicon.ico

Answer

By default, Jahia uses a custom favicon.ico file. This file in tomcat/webapps/ROOT/favicon.ico and is used in your browser when opening any file.

Here are different ways to use a custom favicon.

Change favicon for HTML content (page served by Jahia)

For HTML content, you can change the path to the icon by setting this kind of instruction in the HEAD part of your code: 

<link rel="icon" href="/path/to/your/custom/favicon.ico" />

This instruction can be done directly in your template set.

This instruction is limited to HTML pages, meaning that if you open another type of content, such as a PDF or an image, then the favicon displayed in your browser tab will be the default one. 

Change the default favicon

If you want to change the default favicon, then you can replace the default file tomcat/webapps/ROOT/favicon.ico with your custom favicon. 
If you use a Jahia cluster, then you will need to do it on all of your nodes.

As a result, all of your web projects will now use your custom favicon.

Override the default favicon for a specific web project

If you want to change the default favicon only for a site, then you can use the community module Favicon Manager.

Related links