Adding Favicion Image

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
ghooke
Posts: 28
Joined: Sat May 12, 2012 5:24 am

Adding Favicion Image

Post by ghooke »

I want to add a Favicon, so that when my help desk opens in a browser, there is an accompanying Favicon image displayed in the ' tab'

Can you please advise how I do that ?
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Adding Favicion Image

Post by steve »

Place the favicon.ico into Hesk/img

Then open hesk/Header.txt

add

Code: Select all

<link rel="shortcut icon" href="yourdomain.com/hesk/img/favicon.ico" />
-Steve
Knight Rider
Posts: 7
Joined: Tue Feb 12, 2013 4:32 am

Re: Adding Favicion Image

Post by Knight Rider »

Hello,

I've tried doing this, and it did not work at all.

I used the exact same code pasted above, just added http:// before yourdomain.com

In my case it is: http://yourdomain.com/support/img/favicon.ico

And it didn't work
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Adding Favicion Image

Post by steve »

You didnt literary use the exact code I hope.

The "yourdomain.com........" needs to point to the actual web path of the image you are trying to use. Whatever url you use to point to the picture, paste it into your browser and make sure you can view it before adding it to the hesk header.
-Steve
Knight Rider
Posts: 7
Joined: Tue Feb 12, 2013 4:32 am

Re: Adding Favicion Image

Post by Knight Rider »

I obviously placed my URL into the code, I just removed it, because I didn't want to give out my Board's URL.
I'm on a mobile device right now, so idk if its working or not.
But, I only put yourdomain.com there in place of my domain.
The /support/img/favicon.ico is the directory I put it in, on my server

Edit: I've checked it via my laptop, and it still isn't displaying.
I'm using Google Chrome, if that helps at all.....
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Adding Favicion Image

Post by steve »

If you paste the url to the .ico file into chrome can you view the image?
-Steve
Knight Rider
Posts: 7
Joined: Tue Feb 12, 2013 4:32 am

Re: Adding Favicion Image

Post by Knight Rider »

No
I can't.
It forwards me to a 404 Not Found page on my host's server
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Adding Favicion Image

Post by steve »

There's your issue.. you need to resolve the issue with your favicon.ico url.
-Steve
Knight Rider
Posts: 7
Joined: Tue Feb 12, 2013 4:32 am

Re: Adding Favicion Image

Post by Knight Rider »

I checked on my mobile, if I could view it, and apparently support was spelt, suppor when I tried to view it on mobile.
Just corrected it, and can view it fine.
Will post back, when I've checked my file edit.

Posted using iPhone


Edit: I've checked my file edit, and it is the correct URL, but it still isn't showing
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Adding Favicion Image

Post by steve »

Copy the entirety of header.txt and paste it in this topic to have a look.
-Steve
Knight Rider
Posts: 7
Joined: Tue Feb 12, 2013 4:32 am

Re: Adding Favicion Image

Post by Knight Rider »

Here is my entire header.txt file.

Code: Select all

<link rel="shortcut icon" href="http://knightriderinfo.tk/support/favicon.ico" />
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Adding Favicion Image

Post by steve »

While I was looking into this I found that your favicon img is in fact a .png file. you need to rename the file to favicon.ico

Images needs to be 16×16, 32×32, 48×48, or 64×64 pixels in size, and 8-bit, 24-bit, or 32-bit in color depth
-Steve
Knight Rider
Posts: 7
Joined: Tue Feb 12, 2013 4:32 am

Re: Adding Favicion Image

Post by Knight Rider »

I've recreated the favicon as a 16x16 image, and when viewing its properties area, it says the type is an Icon.
The original image is a GIF image.

If it's of any help, I was following this article: https://www.phpbb.com/kb/article/adding-a-favicon
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Adding Favicion Image

Post by Klemen »

The header.txt file is included after <body> tag, so placing the icon code here will not work.

You will need to add the favicon code inside the <head> - you will find that in inc/header.inc.php file.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Knight Rider
Posts: 7
Joined: Tue Feb 12, 2013 4:32 am

Re: Adding Favicion Image

Post by Knight Rider »

Hello,

Thanks for the reply.
I completely forgot about my question here.

Klemen, I did what you said in the file specified and it works perfectly.

Thanks!
Post Reply