How to add a favicon on a menu app

Hi,
I’ve tried with


?>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<?php

in the onApplicationInit and onLoad events, but it places the <link tag after the <body> element, so doesn’t work. Is there any way to place it to be before the generated <body> tag?
Many thanks,

Dani

I have javascript in my onApplicationInit Event that changes the application icon:
$(document).ready(function(){
$(‘head’).append(’<link rel=“shortcut icon” href="…/_lib/img/grp__NM__img__NM__stlogo50.jpg">’);
$(‘head’).append(’<link rel=“icon” href="…/_lib/img/grp__NM__img__NM__stlogo50.jpg">’);
});

Jojojo! That’s good, but it’s a little ugly not? ;). If it’s the only way, I will need to apply this.

Yeah its quick and dirty :slight_smile: but the only way I found, I have also been struggling to get bootstrap etc links in the main head when the page loads, not much help out there.

What was the problem when trying to add bootstrap? Maybe I could be of some help…

Nah Don’t worry it was related to bootstrap’s js requiring jquery 1.9 :slight_smile:

OK :slight_smile:

… (forum requires more than 10 chars lol)