Creating Favicon using VSD

User 390814 Photo


Registered User
10 posts

Is it possible to include a Favicon using VSD or do I have to have the Editor?
User 355448 Photo


Ambassador
3,144 posts

Margot,

It should be. Create your favicon and upload it to your root directory using an FTP program.

Now in VSD, click on the HTML tool and click on the "Header HTML" tab and add the favicon code.

<link rel="shortcut icon" href="http://www.yoursite.com/img/favicon.ico" type="image/x-icon">
<link rel="icon" type="image/ico" href="/img/favicon.ico">

You may need to play around with the href settings, and it seems that both sets of code are needed.
User 390814 Photo


Registered User
10 posts

Thanks I'll give that a try!
User 544588 Photo


Registered User
9 posts

That worked for me! Thanks!
User 3004957 Photo


Registered User
866 posts

I'm adding this here in case someone else comes along later:

You can add the same lines of code posted by Bill above using Edit > Edit Header. Doing it this way means one less HTML box on the page that you have to move around.

Then, select Settings > Add Files and add the image directly to your VNU project with Visual Site Designer. That way, Visual Site Designer will track it along with everything else on the site.
User 1970960 Photo


Registered User
20 posts

I tried that but can't get it to display have uploaded a favicon but it still shows a red blobby one that I didn't give it! What needs to be kept the same and what needs changing in the code above?
Mark Harrington
Christian Magician & All Age Communicator
www.illusistration.com or www.facebook.com/illusistration
User 355448 Photo


Ambassador
3,144 posts

Mark,

There is nothing to change in the code unless it is location of the favicon. You have this code:
<link rel="shortcut icon" href="http://www.illusistration.com/img/favicon.ico" type="image/x-icon">

<link rel="icon" type="image/ico" href="/img/favicon.ico">

Notice the /img/ part of each line of code. That is part of the location of the favicon if you have an image folder named img. If you change the code to read:
<link rel="shortcut icon" href="http://www.illusistration.com/favicon.ico" type="image/x-icon">

<link rel="icon" type="image/ico" href="/favicon.ico">


That should work.
User 1970960 Photo


Registered User
20 posts

tried that still getting the red blobby icon instead (am viewing in IE8) I used to have this icon when I used MS publisher to make the site, but someohow still have it despite deleting all other image files on the server!
Mark Harrington
Christian Magician & All Age Communicator
www.illusistration.com or www.facebook.com/illusistration
User 1970960 Photo


Registered User
20 posts

have checked with a validator my favicon is too large but links work so will resize and try again
Mark Harrington
Christian Magician & All Age Communicator
www.illusistration.com or www.facebook.com/illusistration
User 1970960 Photo


Registered User
20 posts

Bingo now works and don;t know what I did!
Mark Harrington
Christian Magician & All Age Communicator
www.illusistration.com or www.facebook.com/illusistration

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.