I have two themes on my site: Red, and Blue. This works fine.
I must know if I can make something to change the favicon, when users change the theme.
I know this code is for implementing favicon:
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="favicon.ico" />
What do I need to make this possible? Using jQuery?
I have this script which I use for changing themes:
$("#painel_faccao li a").click(function() {
$("link#faccao").attr("href",$(this).attr('rel'));
$.cookie("css",$(this).attr('rel'), {expires: 365, path: '/'});
return false;
});
How I can implement this here?
(This question has a more modern approach to this function)