Favicon: where?

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
User avatar
jumborex
Registered User
Posts: 84
Joined: Wed Nov 08, 2006 12:33 pm
Location: Milano
Contact:

Favicon: where?

Post by jumborex »

I've found this old discussion:
ElbertF wrote: Perhaps because the image is not linked as it is on the main site:

Code: Select all

<link rel="shortcut icon" type="image/x-icon" href="http://www.phpbb.com/favicon.ico">
In IE (evil), you'll have to bookmark the page first. Then you'll see it in the address bar aswell.

This is the way I knew also, for making appear the little image near the tab, or in the address bar of the browser. Fine: all implementations of phpBB3 show their choice of favicon. :P
Problem is, that I cannot implement it in my test site. I made it the way ElbertF describe here. With phpBB2, installing my favicon link into the header part of overall_header.tpl (if I remember the name), inside the style directories.
Now, here in prosilver --> template we have this overall_header.html.
Not working! :oops: Where do I made wrong?
I have not failed. I've just found 10,000 ways that won't work.
(Thomas Alva Edison)
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Favicon: where?

Post by Highway of Life »

If you simply upload favicon.ico to your webroot directory, it should just appear.
No need to put it in the meta tags of the overall_header.html, though it’s possible the favicon.ico won’t show up in some browsers (IE -- unsure) unless you do put it in the header.
But in Firefox and Safari, it does work.

For the templates, simply putting that bit of code in the header, you’ll need to refresh the template cache for it to actually show up.
Then check view source to be sure.

Also make sure your favicon has the .ico extension.
Image
User avatar
jumborex
Registered User
Posts: 84
Joined: Wed Nov 08, 2006 12:33 pm
Location: Milano
Contact:

Re: Favicon: where?

Post by jumborex »

Highway of Life wrote: [...] you’ll need to refresh the template cache for it to actually show up. [...]

Right Highway! Thanks, as usual! You need refresh the cache... :roll:
I have not failed. I've just found 10,000 ways that won't work.
(Thomas Alva Edison)
User avatar
Handyman
Registered User
Posts: 522
Joined: Thu Feb 03, 2005 5:09 am
Location: Where no man has gone before!
Contact:

Re: Favicon: where?

Post by Handyman »

and your browser cache as well.
My phpBB3 Mods || My Mod Queue
Search Engine Friendly (SEO) URLs || Profile link on Avatar and/or Username || AJAX Chat
Display Posts Anywhere || CashMod || AJAX Quick Edit || AJAX Quick Reply

Image
numediaweb
Registered User
Posts: 4
Joined: Tue May 27, 2008 12:20 pm

Re: Favicon: where?

Post by numediaweb »

first of all You should, make an icon file called 'favicon.ico' of 16 x 16 pixels which will be the icon used in the site adress bar. Upload it into the images directory of phpBB 3.

Then go to admin cp and edit the overall_header template;

find

Code: Select all

{PAGE_TITLE}</title>
and after it add

Code: Select all

<link rel="icon" href="images/favicon.ico" type="image/x-icon" /> 
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />
that's all, it works for me, so it will work for you!
Post Reply