Foren

Liferay 7 theme

Ravi Shankar, geändert vor 6 Jahren.

Liferay 7 theme

Junior Member Beiträge: 40 Beitrittsdatum: 13.07.16 Neueste Beiträge
Hi All
I am working on liferay 7 environment , right now i am working on Theme so for that i created one the theme with the help of yo lilferay-theme
tool, i got all Reflection according to my requirement but i am facing problem with favicon of liferay, i tried to change of default favicon but it is not
going to change.
i followed link :
Link -> https://www.liferay.com/community/wiki/-/wiki/Main/How+to+change+the+favorites+icon.

but still it is not reflecting so please help me how i could resolve.



Thanks with Regards:
Ravi Shankar
thumbnail
Christoph Rabel, geändert vor 6 Jahren.

RE: Liferay 7 theme

Liferay Legend Beiträge: 1554 Beitrittsdatum: 24.09.09 Neueste Beiträge
Have you tried to test it with a "new" browser?
In my experience it is quite impossible to get some browsers to forget a favicon.

Try to access it directly:
http://yourserver/favicon.icon?123

Is it the old icon or the new one? (Adding a parameter like 123 is a trick to defeat caching)

Using method three should work quite reliable. You might also try to rename "liferay.ico" to "yourcompany.ico":
<link rel="Shortcut Icon" href="<%= themeDisplay.getPathThemeImage() %>/yourcompany.ico" /
thumbnail
Ashish Singh, geändert vor 6 Jahren.

RE: Liferay 7 theme

Junior Member Beiträge: 45 Beitrittsdatum: 01.12.16 Neueste Beiträge
Have followed this article
https://web.liferay.com/community/wiki/-/wiki/Main/How+to+change+the+favorites+icon

And have added this parameter in portal-ext.properties working fine for me
theme.shortcut.icon=/theme/images/favicon.ico

Place your image into
/liferay-dxp-digital-enterprise-7.0-sp4/tomcat-8.0.32/webapps/theme/images/favicon.ico
thumbnail
N. Belo, geändert vor 5 Jahren.

RE: Liferay 7 theme

Junior Member Beiträge: 33 Beitrittsdatum: 17.03.09 Neueste Beiträge
The Favicon should be different per Site, no?
If it's defined in the properties, it will be the same for all sites.
Rayappa Hattarwat, geändert vor 5 Jahren.

RE: Liferay 7 theme

Junior Member Beiträge: 89 Beitrittsdatum: 11.08.15 Neueste Beiträge
Hello,
Add your favorite icon theme in portal_normal.vm file header section and image store in theme image folder .
Bellow link put in portal_normal.vm
<link rel="shortcut icon" type="image/x-icon" href="${images_folder}/favicon.ico">

it will work fine.
thumbnail
N. Belo, geändert vor 5 Jahren.

RE: Liferay 7 theme

Junior Member Beiträge: 33 Beitrittsdatum: 17.03.09 Neueste Beiträge
Yes, it did! Thank you.

I was already doing that in the portal_normal.ftl (we are using freemarker) and in this Case we weren't seeing the Icon because Cache for favicon doesn't help much. Restart the browser or test in another browser could be the solution for that.

Also, increasing the icon version might help. i.e:
..."favicon.ico?v=2"

Anyway, thanks! It's good to know that this Forum as usefull contributors.