WordPress.org

Ready to get started?Download WordPress

Forums

Favicon (9 posts)

  1. jasonamison
    Member
    Posted 6 years ago #

    Hello all,

    I've just installed WordPress, and I'm trying to add my forums favicon -- however I cannot get it to show.

    I added the following to the top of the header file, but it still didn't work:

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

    I'd appreciate if someone can help me resolve this.

    blog: http://www.techsupportteam.org/blog/

    Thanks!

    Regards Jason
    http://www.techsupportteam.org

  2. ClaytonJames
    Member
    Posted 6 years ago #

    I think you may need to put it in somewhere in between the <head> and </head> tags. Your source code shows it well below the </head> tag and into the body. Maybe someone can confirm that.

    This is where you have it now;

    </head>
    <body>
    <div id="header">
    <div id="navbar">
    <div class="menu">
    <ul>
    <li class="current_page_item"><a href="http://www.techsupportteam.org/blog/">Home</a></li>
    </ul>
    </div>
    </div>
    <h1><a class="mainlink" href="http://www.techsupportteam.org/blog/">Tech Support Team</a></h1>
    <div id="description"></div>
    </div>
    <div id="wrapper">
    <link rel="shortcut icon" href="/favicon.ico" />
  3. boober
    Member
    Posted 6 years ago #

    yup it has to be inside the head tag

  4. jasonamison
    Member
    Posted 6 years ago #

    Ah, I was experimenting and must of left that there. But, I have put it at the top of the header, still nothing.

    Below, is my full header.php including the <link rel="shortcut icon" href="/favicon.ico" />:

    '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head>
    <link rel="shortcut icon" href="/favicon.ico" />
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <?php wp_head(); ?>

    </head>

    <body>

    <div id="header">

    <div id="navbar">

    <div class="menu">

      <?php wp_list_pages('title_li=0&depth=1&sort_order=desc'); ?>
      <li<?php if(is_home()) {; ?> class="current_page_item"<?php } ?>>/">Home

    </div>

    </div>

    <h1>/"><?php bloginfo('name'); ?></h1>

    <div id="description"><?php bloginfo('description'); ?></div>

    </div>

    <div id="wrapper">'

    Regards Jason

  5. ClaytonJames
    Member
    Posted 6 years ago #

    I'm going to take a chance at making myself sound like an idiot by asking the VERY obvious. Here goes..

    Could the favicon.ico be located in the forum folder only? Thus making the favicon location:

    <link rel="shortcut icon" href="http://www.techsupportteam.org/forum/favicon.ico" />

    and not:

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

  6. whistler2020
    Member
    Posted 6 years ago #

  7. jasonamison
    Member
    Posted 6 years ago #

    Ok, I have now corrected that, thanks. One problem left, however. For me, the favicon shows in Firefox for a second, then just disappears. In IE, it shows correctly. What could be wrong?

    Thanks!

    Regards Jason

  8. boober
    Member
    Posted 6 years ago #

    try replacing your favicon code with this;

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

    but make sure you change it to the correct file path.
    i would actually place the favicon.ico in your root folder, if you havent already. thats where it naturally looks for it anyways.

  9. jasonamison
    Member
    Posted 6 years ago #

    I uploaded it to the root of my server and it worked. All that for something so simple.

    Thanks a lot for your help, much appreciated.

    Regards Jason

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.