Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a Favicon to site


Guest

Recommended Posts

Posted

I am trying to add a favicon to my site. It requires me to add this html code within the <head></head> tags:

 

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

<link rel="icon" href="animated_favicon1.gif" type="image/gif" >

 

Does anyone know where I can add this code. I tried header.php. It has to be a file that is used by every page on the site.

Posted

Put it in the <head> section of your /catalog/index.php

 

Example:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title><?php echo TITLE; ?></title>
<link rel="shortcut icon" href="favicon.ico" />

It doesn't need to be in "a file that is used by every page on the site."

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Put it in the <head> section of your /catalog/index.php

 

Example:

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title><?php echo TITLE; ?></title>
<link rel="shortcut icon" href="favicon.ico" />

It doesn't need to be in "a file that is used by every page on the site."

 

I did all that and still nothing. I checked that the favicon.ico is there on the server at that path and that seems to be fine.

Posted

Solved!

 

Thanks for the help. I had set an include in header.php to include a file I created named header.html to define meta tags and keywords in the header. The script was reading this file first which also has <head></head> tags in it. I removed the include and works great.

 

Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...