Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

How to change favicon

Asked Modified Viewed 23,149 times
J
jubo
J
jubo 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

can somone help me pls i want to change my favicon.ico from the website but its doesn't work...

help pls with exactly what i have to do


echo "<link rel='shortcut icon' href='".IMAGES."WoW.ico' type='image/x-icon' />\n";

i change this in maintenance.php from favicon.ico to wow.ico

i have no idea how i make it right pls help me


Mod: clarified subject
Edited by HobbyMan on 09-01-2010 13:35,
0 replies

18 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

/images/favicon.ico

Please Change your thread title to something more descriptive as titles like "need help pls" is violating the Code of Conduct.
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

The simplest way is to rename your own icon to "favicon.ico" and upload it to your images folder.

If you don't want to do that, open themes/templates/header.php

Find...

if (file_exists(IMAGES."favicon.ico")) { echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n"; }


and change favicon to the name of your icon. You may need to clear your cookies to view it.
0 replies
— 1 year later —
Y
Yanagi
Y
Yanagi 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

Sorry to resurrect this thread, but I followed your instructions with my own icon (http://vivacechoral.com/images/icon.ico) - I renamed it to see if anything would work. I made the following changes to my template header.php:

if (file_exists(IMAGES."icon.ico")) { echo "<link rel='shortcut icon' href='icon.ico' type='image/x-icon' />\n"; }


But still, the bluehost icon persists as my favicon. Can you provide further help?
0 replies
M
M0rdak
M
M0rdak 10
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
answered
Junior Member

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (file_exists(IMAGES."icon.ico"wink) { echo "<link rel='shortcut icon' href='".IMAGES."icon.ico' type='image/x-icon' />\n"; }[/syntaxhighlighter]

Try that, and clear you cache.
0 replies
Y
Yanagi
Y
Yanagi 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

Quote

M0rdak wrote:

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (file_exists(IMAGES."icon.ico")) { echo "<link rel='shortcut icon' href='".IMAGES."icon.ico' type='image/x-icon' />\n"; }[/syntaxhighlighter]

Try that, and clear you cache.


Buh... good catch. That worked. Thank you!
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]if (file_exists(IMAGES."favicon.ico"wink) { echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n"; }
[/syntaxhighlighter]

That code does not appear to work in IE9
This does.
[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<link rel='shortcut icon' href='images/favicon.ico' type='image/x-icon' />[/syntaxhighlighter]
I realise the original poster wanted something else and have a solution, but I dont get why IE9 wont display the first code snippet. Too complex?

... and dont even dare telling me off about browsers and their compatibility or lack thereof.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Well both should work no matter what they are both same codes just the firs on looks to make sure the favicon.ico exists in the images directory that's all.
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

Maybe better to use
href='/images/favicon.ico'
?
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Humm..is tere not a dot missing here:

... file_exists(.IMAGES."ico ...

between ( and I

Naa, that would mean three dev guys posted the wrong code one after another. I cant get that lucky :P
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Failing all that try...


if (file_exists(BASEDIR."images/favicon.ico")) { echo "<link rel='shortcut icon' href='".BASEDIR."images/favicon.ico' type='image/x-icon' />\n"; }


Should make no difference but everything is worth a try and this is coming from me who is NOT a DEV guy. ;)
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Compared to me you are a Dev guy. Hey even Borat is a Dev guy.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Ridiculous you can code just fine, you choose not to that is fine, anyway how do you even think about Borat?
0 replies
H
Homdax
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
answered
Fusioneer

Thinking of you, perhaps...? :D
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

:P It's niiiiiiice but I don't come from kazikstan.
0 replies
— 5 months later —
C
ChildHold
C
  • Member, joined since
  • Contributed 66 posts on the community forums.
  • Started 24 threads in the forums
answered
Member

how to clear cache???.i cant change i favicon...
0 replies
D
dusk
D
dusk 10
  • Member, joined since
  • Contributed 71 posts on the community forums.
  • Started 2 threads in the forums
answered
Member

Quote

ChildHold wrote:

how to clear cache???.i cant change i favicon...



Look in the imagesfolder, just owerwrite the existing favicon.ico by yours :)
0 replies
— 5 years later —
P
pattyland
P
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 4 threads in the forums
answered
Junior Member

How to change the favicon without modifying core? You should never modify the core...
0 replies
D
dimki
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

http://www.favicon-generator.de/defau...ang=en-US/ new favicon

name favicon in phpfusion+ images and cloning with another original but the same name to be > favicon
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 18 posts
  • Votes 0 votes
  • Topic users 11 members

11 participants

H
H
Homdax 10
  • Fusioneer, joined since
  • Contributed 2,246 posts on the community forums.
  • Started 108 threads in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
D
D
dusk 10
  • Member, joined since
  • Contributed 71 posts on the community forums.
  • Started 2 threads in the forums
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
J
J
jubo 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
D
D
dimki 10
  • Senior Member, joined since
  • Contributed 246 posts on the community forums.
  • Started 28 threads in the forums
M
M
M0rdak 10
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
Y
Y
Yanagi 10
  • Newbie, joined since
  • Contributed 4 posts on the community forums.
  • Started 1 thread in the forums
C
C
  • Member, joined since
  • Contributed 66 posts on the community forums.
  • Started 24 threads in the forums
P
P
  • Junior Member, joined since
  • Contributed 23 posts on the community forums.
  • Started 4 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet