Page 1 of 1

Favicon not showing when setup done thru Settings>Configuration>White Label

Posted: Fri 7. Mar 2025, 06:40
by cyumuyc
Hi,

I need help in setting Favicon thru Settings > Configuration > White Label > English. When I upload my Favicon file, browser do not shows any icon. It does show KeyHelp icon when reverted back.

Please suggest what I am doing wrong.

Thanks.
Shanti

Re: Favicon not showing when setup done thru Settings>Configuration>White Label  [SOLVED]

Posted: Fri 7. Mar 2025, 08:50
by Alexander
Hello,

this is because of a small bug in KeyHelp 25.0, which affects some systems (strangely not everyone).

To fix it:

1) Open /home/keyhelp/www/keyhelp/theme/bulma/twig/base/base.twig

Code: Select all

Find:         <link type="image/x-icon" rel="shortcut icon" href="{{ _white_label.favicon_url }}?{{ _app.cache_control }}">
Replace with: <link type="image/x-icon" rel="shortcut icon" href="{{ _white_label.favicon_url }}&{{ _app.cache_control }}">
2) Open open /home/keyhelp/www/keyhelp/theme/bulma/twig/admin_dashboard.twig

Code: Select all

Find:         <img class="svg-vendor-logo" src="{{ _white_label.favicon_url }}?{{ _app.cache_control }}">
Replace with: <img class="svg-vendor-logo" src="{{ _white_label.favicon_url }}&{{ _app.cache_control }}">
3) After the change, call

Code: Select all

keyhelp-toolbox
and choose

Code: Select all

8) Clear template cache

Re: Favicon not showing when setup done thru Settings>Configuration>White Label

Posted: Fri 7. Mar 2025, 10:45
by Fezzi
Thank you Alex, works perfect...