Adding an image to the browser tab

Marc

TPer Emeritus
Suspended / Banned
Messages
34,670
Edit My Images
Yes
I'm trying (unsuccessfully) to make a website logo appear in the browser tab, similar to this

Screen Shot 2017-04-17 at 11.55.58.png

I've managed to find a bit of code, adapted it accordingly and placed it in the header but it doesn't appear to work.

Code:
<link rel="icon" type="image/jpg" href="/suefalber.co.uk/files/logo2.jpg"/>

I'm obviously doing something fundamentally wrong
 
How big is the logo.jpg file? I have a feeling they have to be a specific size or under a specific size to work.
 
If you do a view source then click on the link to the logo file it gives you a 404 so it's not found. The path to it is incorrect or it's not got the correct permissions on it.
 
I'm a silly sod, misread the post.

As Neil said below
 
Last edited:
I've managed to make the image. When you say root directory, do you mean the same folder as the index file?

Yes essentially, where the index.html file is served from
 
Was going to reply to this saying that I'd done that but it wasn't working but then I had to reboot Chrome and it's now working so hanks. :

Yes, sometimes you need to refresh the page a few times before it gets picked up
 
Back
Top