Share » Forums » Setup & design » How to add a favicon.ico to EZ...

How to add a favicon.ico to EZ Publish site?

How to add a favicon.ico to EZ Publish site?

Thursday 29 July 2004 8:55:18 am - 5 replies

Author Message

Paul Forsyth

Thursday 29 July 2004 9:13:07 am

Try something like this:

<head>
<link href={"favicon.ico"|ezimage} rel="Favourite icon" />
</head>

where 'favicon.ico' is located in design/<your-site>/images.

paul
--
http://www.visionwt.com

Eivind Marienborg

Thursday 29 July 2004 9:23:16 am

Adding

<link REL="icon" HREF={"icon.png"|ezimage} TYPE="image/png">

worked like a charm. Thanks lots! :D

Tony Wood

Thursday 29 July 2004 9:41:50 am

You could still keep the 'ico' file by adding ico to the rewrite ignore list.
Your rewrite rule would look something like this in eZ 3.4

 RewriteRule !\.(gif|jpe?g|png|css|ico|js|jar|html)|var(.+)storage.pdf(.+)\.pdf$ /my/path/index.php

This might be preferable as I am not sure if all browsers support 'png' as favicons.

--tony
http://www.visionwt.com

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Eivind Marienborg

Thursday 29 July 2004 9:49:55 am

I've grep'ed through the entire site, but can't find one single RewriteRule.. Where should it be located?

Tony Wood

Thursday 29 July 2004 10:01:59 am

This setup will be in your apache config. So you might want to ask your hoster to show you the apache conf for your site and add this too it.

I am not sure how you are hosting so I cannot give any specific details sorry.

--tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu