WordPress.org

Ready to get started?Download WordPress

Forums

Favicon not found in header.php (4 posts)

  1. peapicking
    Member
    Posted 9 months ago #

    Hi all,

    I’m having difficulty changing the favicon. I’ve uploaded it to my host through the FTP file, then I went to WordPress to do the following as described in their link http://codex.wordpress.org/Creating_a_Favicon

    1. Select the file called Header or header.php to edit the file.
    2. Search for the line of code that begins with <link rel="shortcut icon" and ends with /favicon.ico" />. Overwrite it, if it exists, or add the following code below the <head> HTML tag.
    <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />

    But the only code I have after <link is:
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    And
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

    I have done a search and can not find the word favicon or any variation of it, such as favicon.ico, in the Header.php or the custom-header.php

    Can anyone suggest how to proceed?

    Thanks so much for your time in answering.

  2. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

  3. peapicking
    Member
    Posted 9 months ago #

    I am not normally inclined to say OMG, but OMG I wish I had asked this question 2 days ago and you had given me that amazing answer. OMFG that was simple.

    You are great and thank you for answering.

  4. WPyogi
    Volunteer Moderator
    Posted 9 months ago #

    LOL - well, I'm glad you finally asked! (Next time, you really don't have to wait so long... :)!)

Reply

You must log in to post.

About this Topic

Tags

No tags yet.