
Favicon
Table of Contents [-]
Introduction #
Favicon is the Favorites Icon when someone bookmarks your site. This article outlines ways to change the favicon for your Liferay portal installation.
For Liferay versions previous to 6.0, the favicon image was named as liferay.ico
For Liferay versions 6.0+, the favicon image is named as favicon.ico
Method 1 #
Modify your portal-ext.properties file (if it supports that):
# # Set the theme's shorcut icon. # theme.shortcut.icon=liferay.ico
Method 2 #
By dropping your own icon with the same name as the Liferay icon, your icon will appear as the bookmark/favorites icon instead of the Liferay icon.
The icon is located under:
/Your_Theme/html/themes/example/images/liferay.ico
An example:
/portal-web/docroot/html/themes/brochure/images
If you create your own theme with the Plugins SDK, place the icon in themes/Your_theme/docroot/_diffs/images/liferay.ico
Method 3 #
Another method to changing the icon, is to replace the icon with your own icon by editing the “Top_Head.jsp”
<link rel="Shortcut Icon" href="<%= themeDisplay.getPathThemeImage() %>/liferay.ico" />
You’ll then need to change liferay.ico to your_icon.ico and place the icon in your /images folder under your theme.