How can I change favicon of my pages in Vaadin ? I would like to change favicon of my pages but I have no idea where is the place to change it ? Has somebody experience on it ?
Right-click favicon.ico and select Change Resource. In Change Resource, select an ICO image with the new favicon. Check if some elements in the module use the old icon and update them if needed. Press Ctrl+F or click the search icon, enter favicon.png and select Search in this Module.
Overview A favicon is a small website icon displayed in a browser, usually next to an address. Often we don't want to settle for the default ones provided by various frameworks such a Spring Boot.
The simplest way to override the default favicon of a Spring Boot application is to place the new favicon in the resources directory: The favicon file should have the “ favicon.ico” name. We may also put that file in the static directory inside the project's resources directory:
In Change Resource, select an ICO image with the new favicon. Check if some elements in the module use the old icon and update them if needed. Press Ctrl+F or click the search icon, enter favicon.png and select Search in this Module.
First, create a theme directory: /WebContent/VAADIN/themes/mynewtheme
Then, put your custom favicon.ico in this directory. You also need to set theme property in your application :
public class MyNewApplication extends Application {
@Override
public void init() {
...
...
setTheme("mynewtheme");
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With