Title: Uploading files in header.php
Last modified: August 30, 2016

---

# Uploading files in header.php

 *  Resolved [kustv](https://wordpress.org/support/users/kustv/)
 * (@kustv)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/)
 * Hello,
    I would like to know where exactly I would need to place the files that
   I have created for my favicons on your website. I prefer not using the plugin
   because I am already using quite a few plugins and want to keep the site as light
   as possible.
 * Thank you for your help-
    kustv
 * [https://wordpress.org/plugins/favicon-by-realfavicongenerator/](https://wordpress.org/plugins/favicon-by-realfavicongenerator/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364679)
 * Hi Kustv,
 * First, let me promote the plugin. It’s very light. The code triggered in the 
   public part of the site (… where you want plugins to be *fast*) is straightforward.
   So it probably won’t slow down your site. And it comes with a few advantages.
   Your favicon is preserved whenever you change your theme. Your favicon is updated
   automatically if something changes (think: iOS 9 will be released in a few months).
 * Alright, now I answer your question 🙂
 * You can generate your favicon manually by going to [Real Favicon Generator<a/> and by following the instructions of the ](http://realfavicongenerator.net/)
   [WordPress codex](https://codex.wordpress.org/Creating_a_Favicon). Keep in mind
   that the favicon code will be dropped whenever you change your theme.
 * Does this help?
 * Regards,
    Philippe
 *  Thread Starter [kustv](https://wordpress.org/support/users/kustv/)
 * (@kustv)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364694)
 * Hello ,
    thank you for your reply. Actually, my theme support does not think 
   it is a good idea to edit the head.php( even when using a child theme). They 
   suggested to edit my child theme’s function instead with the following:
 *     ```
       function kt_addfavicon_custom(){ ?>
   
       	<link rel="apple-touch-icon" sizes="57×57" href="/apple-touch-icon-57×57.png">
       	<link rel="apple-touch-icon" sizes="60×60" href="/apple-touch-icon-60×60.png">
       	<link rel="apple-touch-icon" sizes="72×72" href="/apple-touch-icon-72×72.png">
       	<link rel="apple-touch-icon" sizes="76×76" href="/apple-touch-icon-76×76.png">
       	<link rel="apple-touch-icon" sizes="114×114" href="/apple-touch-icon-114×114.png">
       	<link rel="apple-touch-icon" sizes="120×120" href="/apple-touch-icon-120×120.png">
       	<link rel="apple-touch-icon" sizes="144×144" href="/apple-touch-icon-144×144.png">
       	<link rel="apple-touch-icon" sizes="152×152" href="/apple-touch-icon-152×152.png">
       	<link rel="apple-touch-icon" sizes="180×180" href="/apple-touch-icon-180×180.png">
       	<link rel="icon" type="image/png" href="/favicon-32×32.png" sizes="32×32">
       	<link rel="icon" type="image/png" href="/android-chrome-192×192.png" sizes="192×192">
       	<link rel="icon" type="image/png" href="/favicon-96×96.png" sizes="96×96">
       	<link rel="icon" type="image/png" href="/favicon-16×16.png" sizes="16×16">
       	<link rel="manifest" href="/manifest.json">
       	<meta name="msapplication-TileColor" content="#da532c">
       	<meta name="msapplication-TileImage" content="/mstile-144×144.png">
       	<meta name="theme-color" content="#ffffff">
       <?php }
       add_action('wp_head', 'kt_addfavicon_custom');
       ```
   
 * I am not sure how and where I would need to upload the images though. Would I
   need to extract the downloaded zip and upload each image individually? Sorry 
   I am a WP beginner…
 *  Thread Starter [kustv](https://wordpress.org/support/users/kustv/)
 * (@kustv)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364695)
 * And what about the browserconfig and manifest.json files?
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364714)
 * Changing `header.php` is the generic way, but if your theme’s support tells you
   otherwise, you should follow their advice!
 * About the files location, you should put them in a dedicated directory. For example
   in `wp-content/upload/favicon` (you’ll have to create this directory). One you
   know where the files will be, go to RealFaviconGenerator again and create your
   favicon one more time. But this time, in the Favicon options, indicate this path
   as the location (`/wp-content/upload/favicon` in this example). So the generated
   HTML will match the actual location of your files.
 * Yep, you should probably unzip your favicon package on your PC and upload all
   the files to your site (one by one, really? I’m confident your FTP client can
   do better than this! 🙂 )
 * `manifest.json` and `browserconfig.xml` are two extra files for Android Chrome
   and Internet Explorer 11, respectively. They both specify icons for these platforms.
 * Don’t think I’m trying to sell you the plugin, but it would automate all this
   tedious installation process. Just saying 🙂
 *  Thread Starter [kustv](https://wordpress.org/support/users/kustv/)
 * (@kustv)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364748)
 * Okay, I will give the plugin a try. Just a question though: Is the plugin working
   through hooks or is it actually editing the header-php?
    Also, I noticed when
   creating a favicon on your website, that the favicon was very blurry(even though
   the image I uploaded was an svg!). Is there a way to prevent this? Thank you,
   kustv
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364759)
 * The plugin is using a single hook to add the favicon code on the fly. It doesn’t
   modify anything so it can be deactivated or uninstalled safely.
 * No, the icon is not supposed to be blurry… It might come from the SVG format,
   I had a few troubles with this some time ago. Could you mail me the picture at
   [contact@realfavicongenerator.net](https://wordpress.org/support/topic/uploading-files-in-headerphp/contact@realfavicongenerator.net?output_format=md)
   so I can review it?
 *  Thread Starter [kustv](https://wordpress.org/support/users/kustv/)
 * (@kustv)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364770)
 * I just did! Thank you 🙂
 *  Plugin Author [phbernard](https://wordpress.org/support/users/phbernard/)
 * (@phbernard)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364796)
 * You’re welcome!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Uploading files in header.php’ is closed to new replies.

 * ![](https://ps.w.org/favicon-by-realfavicongenerator/assets/icon-256x256.png?
   rev=972314)
 * [Favicon by RealFaviconGenerator](https://wordpress.org/plugins/favicon-by-realfavicongenerator/)
 * [Support Threads](https://wordpress.org/support/plugin/favicon-by-realfavicongenerator/)
 * [Active Topics](https://wordpress.org/support/plugin/favicon-by-realfavicongenerator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/favicon-by-realfavicongenerator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/favicon-by-realfavicongenerator/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [phbernard](https://wordpress.org/support/users/phbernard/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/uploading-files-in-headerphp/#post-6364796)
 * Status: resolved