Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Icon in address bar


emilesteenkamp

Recommended Posts

Posted

How can I put my business icon in the address bar where people would type my URL? Like the Oscommerce icon is in the address bar now?

No outside links in signature allowed. See forum rules please.

Posted

search for favicon, there are generators out there and instructions

 

OK, so I searched for this. I created the favicon.ico and uploaded it to my root.

I included this code: <link rel="shortcut icon" href="/favicon.ico"> and <link rel="shortcut icon" href="favicon.ico"> the second time round as it didn't work.

I included the code in this section of the index.php file:

?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

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

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

 

Nothing is working. No icon is appearing in the search bar. Please help...

No outside links in signature allowed. See forum rules please.

Posted

OK, so I searched for this. I created the favicon.ico and uploaded it to my root.

I included this code: <link rel="shortcut icon" href="/favicon.ico"> and <link rel="shortcut icon" href="favicon.ico"> the second time round as it didn't work.

I included the code in this section of the index.php file:

?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

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

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

<!-- header //-->

 

Nothing is working. No icon is appearing in the search bar. Please help...

You really have to understand how they work, and I don't know anyone that really does.

 

First, you don't have to do anything other than put the image in your document root.

Second, most browsers only update the image when the page is bookmarked.

Third, different browsers handle them differently.

And finally, it is almost never instantaneous.

 

Put it there and give it a day or two. If it conforms to the favicon standards it will eventually show.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

You only need the <link> tag if it's not in the site root (/) and/or it's not named favicon.ico. If it is in that place and has that name, you don't need to do anything. Remember: all lower case file name. You can test it by displaying it: http://www.yoursite.com/favicon.ico

 

Don't make the common mistake of creating a bmp, gif, or jpeg image and renaming it to .ico. You have to save it as ICON format. Almost any "paint" program can do this. It must be 16 x 16 pixels.

 

Different browsers handle favicons in different ways. Some may take a while to pick them up. Some may require you to bookmark (or re-bookmark) a page in order to pick up the favicon. Some seem to have no rhyme or reason.

Posted

If I remember correctly, I even had to clear my browsers cache (temporary internet files & cookies) before IE7 recongnized mine when I bookmarked it.

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

If I remember correctly, I even had to clear my browsers cache (temporary internet files & cookies) before IE7 recongnized mine when I bookmarked it.

 

I/m testing in FF, IE and just loaded chrome, none recognizes it, I'll just wait a few days

No outside links in signature allowed. See forum rules please.

Archived

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

×
×
  • Create New...