Adding Favicon & Header

Helpdesk for my helpdesk software

Moderator: mkoch227

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

Adding Favicon & Header

Post by ghooke »

I am trying to add a favicon and a header graphic into my help desk design.

I have done the following process.

I open the header.txt file and added the favicon.ico as follows:

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


I uploaded the favicon.ico image to the hesk/img folder


And for the Header graphic

For the header I opened the header.txt file and added link to the header

<center><img
src="http://www.formula1lottosystem.com/supp ... "></center>

I uploaded the header graphic


You can see here the result: http://www.formula1lottosystem.com/support/

The header graphic shows perfectly ok, But the favicon does not..


If you look at the source code for that page you can see that the <link rel="shortcut icon" href="/img/favicon.ico" /> is being positioned in the /body section of the code.

I thought that code should be in the <head> - </head> section.

Can you tell me what I have done incorrectly
hostwebservice.com
Posts: 45
Joined: Mon Dec 18, 2006 3:20 pm

Re: Adding Favicon & Header

Post by hostwebservice.com »

You need to add full url to work.

See this page: http://www.hesk.com/knowledgebase/?article=33

Marino
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Adding Favicon & Header

Post by steve »

Thats interesting, using"img/favicon.ico" worked for me. Is there any reason why I might want change my header to use a full URL?
-Steve
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Adding Favicon & Header

Post by Klemen »

Full URLs need to be used in header/footer because customer pages and admin/staff pages are in different folders so they have different relative URLs.

"img/image.jpg" for example will work for customers, but you would need "../img/image.jpg" to show the image correctly in admin panel. However, "http://domain.com/hesk/img/image.jpg" works fine for both.
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
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: Adding Favicon & Header

Post by steve »

That makes sense, thanks for clarifying. Since I don't use the customer interface, I never found this to be an issue.
-Steve
Post Reply