Webmaster's Community

Designing and Development => Open Source => SMF Support - Simple Machine Forums => Topic started by: Tayab on September 30, 2012, 01:31:51 AM

Title: How to add Favicon to SMF forum? After uploading the favicon to root folder.
Post by: Tayab on September 30, 2012, 01:31:51 AM
After uploading the file favicon.ico to the root folder of forum, where should the codes go?
Title: Re: How to add Favicon to SMF forum? After uploading the favicon to root folder.
Post by: Jaffery on September 30, 2012, 09:55:29 AM
If you add it to root of your website then it will be automatically picked up by browsers i.e. favicon.ico at root of website. Also you can use other recommended way is to add following somewhere in head of your website (index.template.php in case of smf.
Code: [Select]
<link rel="icon"  ype="image/png"    href="/somewhere/myicon.png" />[code]
Title: Re: How to add Favicon to SMF forum? After uploading the favicon to root folder.
Post by: Tayab on October 01, 2012, 01:39:05 AM
Oh yeah! It worked, I just added the logo to root folder and that was all. :D Thank you very much.

I just have another query regarding this favicon thing, can I add separate icon for each sub domain/directory? I tried the HTML code but it didn't worked. What is the detour of it?
Title: Re: How to add Favicon to SMF forum? After uploading the favicon to root folder.
Post by: Jaffery on October 01, 2012, 07:13:34 PM
Once a favicon is loaded for a website, it will get cached, if another page has another favicon, then you have clear cache of browser then open that new page with new favicon.  Though I have never tried multiple favicon on single domain.
Title: Re: How to add Favicon to SMF forum? After uploading the favicon to root folder.
Post by: Tayab on October 01, 2012, 11:45:56 PM
I guess it might work since we will have sub-domains. The code will go for each page with different things, isn't it?