How to Add Favicon (7 posts)

  1. MacroPhotoPro
    Posted 4 years ago #

    How do I add a favicon to my page?

    Is there an 'overall header' php that I can add it to?

    Thanks for any help!

  2. Just drop it in webroot, the same level as wp-config.php, and it will work.

    If you want to be cross-browser precise, also use

    <link rel="icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php bloginfo('siteurl'); ?>/favicon.ico" type="image/x-icon" />

    in header.php and delete other favicon links to make it clean.

  3. MacroPhotoPro
    Posted 4 years ago #

    Thank you very much!

    Is header.php the same as wpheader.php?

  4. I have no idea what file wpheader.php might be. It's not a standard WP file name.

  5. nattywp
    Posted 3 years ago #

    You can create favicon.ico using this online tool:
    Then follow the instructions on Faviconer to add new icon to your page.

  6. kmessinger
    Volunteer Moderator
    Posted 3 years ago #

  7. s_ha_dum
    Posted 3 years ago #

    Last I checked some browsers still look for favicon.ico in the web root, even if you include the right link tags for it, so you end up with failed requests and a slower load time because of it. If you can put it root you are better off, it seems to me.

    I would really love it if someone could contradict that though. I'd much rather keep favicon.ico with all of the other theme images.

Topic Closed

This topic has been closed to new replies.

About this Topic