PDA

View Full Version : Favicon code analysis


skysolutions
07-Oct-2004, 12:56 PM
Hi guys, I was wondering if someone can tell me what I have done wrong here. I have added this line at the top of Act_Primary.html, but my favicon is not doing what I believe it should be doing.

<html>
<head>
<LINK REL="http://www.skysolutions.co.uk/acatalog/myicon.ico" HREF="http://www.skysolutions.co.uk/myicon.ico">
<TITLE>Sky Solutions Home Page</TITLE>
<TITLE>

Any advice appreciated!

I-CC
08-Oct-2004, 02:28 PM
Not 100% certain on this, but should not both links have the same path to the ico file, as one link suggest in the acatalog folder (where the file does exist) and the other in the root folder where it is not located. Just an idea

skysolutions
08-Oct-2004, 04:54 PM
This is the code from Microsoft. Page:

http://msdn.microsoft.com/library/default.asp?url=/workshop/Author/dhtml/howto/ShortcutIcon.asp

<HEAD>
<LINK REL="SHORTCUT ICON"HREF="http://www.mydomain.com/myicon.ico">
<TITLE>My Title</TITLE>
</HEAD

skysolutions
08-Oct-2004, 04:58 PM
I have changed it as you suggested and still the same I am afraid. When I look out the source code on the website itself, I do not see this code, which might explain why it is not there?

If I change Act_Primary.html, should that change not get uploaded when I update site?

I-CC
08-Oct-2004, 05:11 PM
Have you tried FTP'ing the file to the root /documents or /www what ever your public html area is and then doing it that way, as I think it has to reside there as opposed to sub folders...

skysolutions
08-Oct-2004, 05:20 PM
I have it in both the root,a dn subfolders, and have amended html to reflect the change. The only thing that does not make a lot of sense is that I do not see this line of code in the source code, but is there in Act_Primary.html.

Shouldn't it be in my site's source code? If it is not there it will not be picked up will it?

I-CC
08-Oct-2004, 05:32 PM
For the home page you will need to add it into the Act_BrochurePrimary.html template.

skysolutions
08-Oct-2004, 05:57 PM
Should I use the parent template or the default brochure overall?

cdicken
11-Oct-2004, 09:18 AM
Should I use the parent template or the default brochure overall? They are likely to be the same thing.

Go to 'Design | Options | Brochure' and click 'Edit' next to the 'Overall Layout' field. This will probably be 'Act_BrochurePrimary.html'. Add the code in there.

Any of your brochure pages with the 'Layout' field set to 'Use Parent' will use this template. Any of your brochure pages with the 'Layout' field set to 'Default Brochure Overall Layout Template' will also use this template.

skysolutions
12-Oct-2004, 07:42 AM
I have added the code to 'Act_BrochurePrimary.html' but to no avail. I am starting to think that the favicon was a bad idea.. :(

Bensaro
13-Oct-2004, 04:02 PM
The correct syntax for installing a favicon is;


<link rel="SHORTCUT ICON" href="image/favicon.ico" />

where "image/" is the path to your image (which must of course, be of the correct format and size i.e. 16x16 or 48x48)


Good luck

Bensaro

skysolutions
14-Oct-2004, 02:18 PM
Bensaro.. You da Man!! :D