Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 10:43:14 AM

Pages: [1]   Go Down
  Print  
Author Topic: favicon issues  (Read 1070 times)
tech4all
Spaceship Captain
*****
Offline Offline

Posts: 119


« on: October 15, 2011, 12:31:42 PM »

I have my main domain then an add-on domain. I have separate favicons for each site.

• Both work great on Safari.
• Firefox only shows my main domain's favicon; the add-on does not show it's favicon, just the generic icon
• in Chrome both main domain and add-on domain show the main domains favicon.

Hope that makes sense. Any ideas?

The code for both domains look like this:

Code:
<link rel="shortcut icon" href="favicon.ico" />

Both are after the TITLE tag.

Any help is appreciated.
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5219



« Reply #1 on: October 15, 2011, 04:07:28 PM »

Each favicon is in the same directory as the page giving the <link rel> tag? When you look at the HTML page source in your browser, does it show it's looking for the favicon in the right place? Do you get an error log entry that favicon.ico is a 404 for certain browsers?

Since you are using the default name and type (favicon.ico), you might try simply placing them in the main domain root / and the add-on root /addon respectively. That's where browsers will look if not otherwise instructed with a <link rel> tag. You should need the tag only if you have a different file name or non-default location.

Different browsers can be squirrely about picking up changes to favicons, once they've recorded them. You might have to clear your browser cache, or even remove the site and put it back to favorites/bookmarks to get the new information to "take". Even a first visit to a site can work in unexpected ways, with a favicon not showing up for days sometimes.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
tech4all
Spaceship Captain
*****
Offline Offline

Posts: 119


« Reply #2 on: October 19, 2011, 03:37:36 PM »

Thank you for the information.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: