News:

Join the Facebook Fan Page.

Main Menu

Favicon Help

Started by jbraum, December 20, 2006, 09:38:56 AM

Previous topic - Next topic

jbraum

Here's what I've done but I'm not seeing my favicon

Put the favicon in the default theme and pasted the following code<link rel="shortcut icon" type="application/ico" href="/favicon.ico" /> before the </head> in the index.template.php.  I'm using a different theme is this my problem?

Gary

Try


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


and upload favicon.ico into your main the forum root directory.

-AwwLilMaggie
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

jbraum

Did that but no favicon.  Might be a dumb question but do I need to put the code on the index.php in the root directory where the favicon is.  Now I have the code in the default theme - index.template.php and in the same php page in the theme I currently use.

Alan S

Dont put the code in the index.php , It could screw up your forum , Put it in the index.template.php

at the very start before all the other code so its like


<head>
<link rel="shortcut icon" href="favicon.ico" />
</head>
<?
-----Smf Code------ ?>
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

jbraum


Chris™


Gary

You can just use a graphic program like Photoshop and just add the .ico extension to the filename.

-AwwLilMaggie
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Alan S

Or you can just upload a normal image to here and it will be resized and put into ico format automaticaly.

http://www.favicongenerator.com/
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

weightman

QuoteDont put the code in the index.php , It could screw up your forum , Put it in the index.template.php

at the very start before all the other code so its like

Code:

<head>
<link rel="shortcut icon" href="favicon.ico" />
</head>
<?
-----Smf Code------ ?>
This worked for me. The favicon mod nor any of the code in the others threads did not.

Thanks

meMilly

Quote from: Alan S on December 21, 2006, 11:00:29 AM
Dont put the code in the index.php , It could screw up your forum , Put it in the index.template.php

at the very start before all the other code so its like


<head>
<link rel="shortcut icon" href="favicon.ico" />
</head>
<?
-----Smf Code------ ?>


THANK you! :) I had tried everything else!

* meMilly whistles happily and looks at her new favicon.

Deprecated

Just a bit more advice for you. Some browsers are non-compliant or otherwise cornfused. Use this in your header instead:

Quote<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />

That will get a few more browsers to work correctly, with both forms of the tag.

s_m_f_forumuser

Quote from: Deprecated on August 02, 2008, 01:14:57 AM
Just a bit more advice for you. Some browsers are non-compliant or otherwise cornfused. Use this in your header instead:

Quote<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />

That will get a few more browsers to work correctly, with both forms of the tag.

When I do that the font size on my complete SMF board gets larger (too big). Strange?

bitman

Quote from: Alan S on December 21, 2006, 11:00:29 AM
Dont put the code in the index.php , It could screw up your forum , Put it in the index.template.php

at the very start before all the other code so its like


<head>
<link rel="shortcut icon" href="favicon.ico" />
</head>
<?
-----Smf Code------ ?>


I did this and yes it worked BUT: It breaks the Image Verification picture upon registering.
I'd love to have the favicon back but not at the expense of new users.

Help!  :)

:Ron



kat

Don't worry about any coding.


Just put the favicon in the root of your forum.


Browsers will find it, automatically, now.


Best to have them 16×16pixels in size.

bitman

Quote from: Kat on May 20, 2010, 11:49:55 AM
Don't worry about any coding.


Just put the favicon in the root of your forum.


Browsers will find it, automatically, now.


Best to have them 16×16pixels in size.

Thanks Kat.

Love your avatar - busts me up.

Well that doesn't seem to work for me. I have the 16x16 .ico in the root of the forum folder but I don't see it displaying the icon in the url.

kat

For reasons that I did know, but forget, it can take a while.


Try emptying your cache. ;)


The avatar kinda fits, here... I get like that, with some posters.


They seem rather dense, sometimes. ;)

bitman

Quote from: Kat on May 20, 2010, 12:07:41 PM
For reasons that I did know, but forget, it can take a while.


Try emptying your cache. ;)


The avatar kinda fits, here... I get like that, with some posters.


They seem rather dense, sometimes. ;)

I've cleared the cache with no avail, but you are supported by many elsewhere on other forums so I'll dig around and if I fix it, I will post here.

Thanks Kat.

kat

No sweat, mate.


Odd thing, those favicons.


They tend to show-up almost straight away, in Opera.


With other browsers, it seems to take a while.

bitman

I found a post that said to add:

<html>
<head>
<title>WEBSITE NAME</title>
<LINK REL="SHORTCUT ICON" HREF="favicon.ico">
<head>
<html>

To the end of index.php.

I did that and the favicon is back. Nothing elese seems broken but time will tell.

:Ron

kat

Well, you got there, in the end, so all's good! :)

Advertisement: