• Resolved ssbono

    (@ssbono)


    I am trying to change the favicon, and am having trouble. I have generated the favicon, and have ftped it to my child image folder. I have also tried copying it into the root directory, and the twentyten image folder also. I have added this code to my child functions.php theme:
    /* add a favicon */
    function blog_favicon() {
    echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”‘.get_bloginfo(‘stylesheet_directory’).’/images/favicon.ico” />’ . “\n”;
    }
    add_action(‘wp_head’, ‘blog_favicon’);
    I am confused as to which image directory this is- is it my child theme image directory? Also, do I need to create a child theme header.php and put something in there too (if so, what?)
    Thanks so much- I’m new to this!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You can do it easier. Undo all that and toss the favicon.ico file in the same folder as your wp-config.php file.

    Thread Starter ssbono

    (@ssbono)

    I am totally new to this, so you may have to explain. Where is the wp-config.php file located? I can’t find it anywhere.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I take it you used some sort of installer tool to set up your site? The wp-config.php file sits in the ‘root’ level of your blog and its used to control the configurations of your site. So if you installed WordPress in yourdomain.com, then on your SERVER it’s probably in a folder called public_html or www.

    Do you know how to use a file manager like FTP or something visual via your host to upload files? You need to do that.

    Thread Starter ssbono

    (@ssbono)

    Okay, it finally worked! Thank you so much for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing favicon’ is closed to new replies.