linkedit
Member
Posted 2 years ago #
I had recently deleted a theme and installed a new one. Once installing the newer theme, the site still shows the favicon for the old theme. I had added the follwing code in my header...
<!--Favicon-->
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
<!--End of Favicon-->
And added a favicon file (there wasn't one before) but it sill doesn't show the new favicon.
Right now my new favicon is in the images folder of the current, in use theme. Should it be somehwere else???
Thanks
I recommend you place your favicon.ico at the root where you could call easily (no db query needed) in any future theme or any other application you add onto your site. Just add this within <head> </head>
<link href="http://www.yoursite.com/favicon.ico" rel="shortcut icon" />
vangrog
Member
Posted 2 years ago #
linkedit
Member
Posted 2 years ago #
Which template do I put that code in? The header?
Thanks
header.php and like I said within <head> </head>
linkedit
Member
Posted 2 years ago #
I have no idea what to do. This is what is in my header template
<link href="http://gadgetvault.net/favicon.ico" rel="shortcut icon" />
still showing the old favicon.
your link url gives an 404 image not found
where to did you upload your favicon.ico?
linkedit
Member
Posted 2 years ago #
it's working now.
<link href="http://gadgetvault.net/favicon.ICO" rel="shortcut icon" />
When I put gadgetvault.net/favicon.ICO in my browser I would get page not found. I retyped it in the header template and now somehow it works.
I must had made a typing error.
Thanks everyone.
Great, just click dropdown on right column to Resolved. Cheers.