• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 80
  • Last Modified:

My favicon isn't showing up. Why?

Here's my code:

<link rel="icon" href="images/verizon_favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="images/verizon_favicon.ico" type="image/x-icon">

My image is 16X16 and it's in the directory that's referenced but no favicon.

What am I missing?
0
brucegust
Asked:
brucegust
  • 3
  • 2
1 Solution
 
Russ SuterCommented:
remove the first element. The only one you should use is <link rel="shortcut icon" href="images/verizon_favicon.ico" type="image/x-icon">

Also, the type is not strictly necessary.
0
 
brucegustPHP DeveloperAuthor Commented:
Russ, I tried to simplify things even more by doing this:

<link rel="shortcut icon" href="verizon_favicon.png">

...put the image in the main directory, checked to make sure it was accessible and everything seems gold, but still no favicon showing up.

Am I missing anything?
0
 
brucegustPHP DeveloperAuthor Commented:
Here's a portion of my header:

<!DOCTYPE html>
		<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<title>South Area Network</title>
		<link href="css/new_style.css" rel="stylesheet" type="text/css" />
		<link rel="shortcut icon" href="verizon_favicon.png">
		<map name="tabs">
		<area shape="rect" coords="19,27,140,43" href="dashboard.php">
		<area shape="rect" coords="153,27,262,43" href="http://southareanetwork.nss.vzwnet.com/network_tools_list.php">
		<area shape="rect" coords="281,27,393,43" href="http://netadmin.nss.vzwnet.com/asset-management/cip-dashboard/" target="_blank">
		<area shape="rect" coords="405,27,523,43" href="project_request.php">
		</map>
		<map name="login">
		<area shape="rect" coords="4,21,90,44" href="custom_validate.php">
		<area shape="rect" coords="14,64,456,131" href="index.php">
		</map>

Open in new window

0
 
Russ SuterCommented:
Possibly. In order for this to work the icon file would have to be in the same directory as the page. If that's not the case then you need to change the href to use a root-relative or absolute URL.
0
 
brucegustPHP DeveloperAuthor Commented:
I found a plugin for Photoshop that allowed me to save my image as an .ico. Once I did that and used an absolute URL, that did the trick!

Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now