Forums

[resolved] Favicon problem! (9 posts)

  1. linkedit
    Member
    Posted 2 years ago #

    I had recently deleted a theme and installed a new one. Once installing the newer theme, the site still shows the favicon for the old theme. I had added the follwing code in my header...

    <!--Favicon-->
    <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
    <!--End of Favicon-->

    And added a favicon file (there wasn't one before) but it sill doesn't show the new favicon.

    Right now my new favicon is in the images folder of the current, in use theme. Should it be somehwere else???

    Thanks

  2. @mercime
    Member
    Posted 2 years ago #

    I recommend you place your favicon.ico at the root where you could call easily (no db query needed) in any future theme or any other application you add onto your site. Just add this within <head> </head>
    <link href="http://www.yoursite.com/favicon.ico" rel="shortcut icon" />

  3. vangrog
    Member
    Posted 2 years ago #

    ...

  4. linkedit
    Member
    Posted 2 years ago #

    Which template do I put that code in? The header?

    Thanks

  5. @mercime
    Member
    Posted 2 years ago #

    header.php and like I said within <head> </head>

  6. linkedit
    Member
    Posted 2 years ago #

    I have no idea what to do. This is what is in my header template

    <link href="http://gadgetvault.net/favicon.ico" rel="shortcut icon" />

    still showing the old favicon.

  7. alchymyth
    The Sweeper
    Posted 2 years ago #

    your link url gives an 404 image not found
    where to did you upload your favicon.ico?

  8. linkedit
    Member
    Posted 2 years ago #

    it's working now.

    <link href="http://gadgetvault.net/favicon.ICO" rel="shortcut icon" />

    When I put gadgetvault.net/favicon.ICO in my browser I would get page not found. I retyped it in the header template and now somehow it works.

    I must had made a typing error.

    Thanks everyone.

  9. @mercime
    Member
    Posted 2 years ago #

    Great, just click dropdown on right column to Resolved. Cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags