This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. 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.icoMethod 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.