Title: adding additional  code in head
Last modified: August 21, 2016

---

# adding additional code in head

 *  Resolved [grigione](https://wordpress.org/support/users/grigione/)
 * (@grigione)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/)
 * I have added kml and favicon files inmy site and now i want add relative codes
   in head section such us:
    <link rel=”alternate” type=”application/vnd.google-
   earth.kml+xml” href=”SixRevisions.kml” /> <link rel=”shortcut icon” href=”<?php
   echo get_stylesheet_directory_uri(); ?>/favicon.ico” /> and without conflict 
   with yoast plugin that install all others meta code that i need It’s possible
   with your plugin without conflict with Yoast? It’s compatible with last wordpress
   3.5.1? Thanks
 * [http://wordpress.org/extend/plugins/wp-headmaster/](http://wordpress.org/extend/plugins/wp-headmaster/)

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

 *  Plugin Author [bavington](https://wordpress.org/support/users/bavington/)
 * (@bavington)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854580)
 * Hey Grigione, apologies for the late reply to your question.
 * So just to confirm, would you like WP Headmaster upgrading so that you can source
   and enqueue links like the KML one via the plugin?
 * With respect to the Favicon are you also suggesting an option to source the image
   from within the theme rather than via uploading it in the backend?
 * James.
 *  Thread Starter [grigione](https://wordpress.org/support/users/grigione/)
 * (@grigione)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854596)
 * Yes if is possible upgrade your plugin to include this features….
 * for favicon in header.php i want insert code <link rel=”shortcut icon” href=”
   [http://www.tuosito.it/favicon.ico&#8221](http://www.tuosito.it/favicon.ico&#8221);
   >
 * thanks and sorry for bad english
 *  Plugin Author [bavington](https://wordpress.org/support/users/bavington/)
 * (@bavington)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854598)
 * Hi again Grigione, are you looking for an alternate way of displaying a Favicon
   to uploading it through the back-end?
 * Do you wish to source your Favicon from an external URL, or are you simply looking
   for a way to add any hard-coding into wp_head ?
 *  Thread Starter [grigione](https://wordpress.org/support/users/grigione/)
 * (@grigione)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854600)
 * sorry but i don’t uderstand very well I have favicon.ico in root directory of
   my site and uploaded it in root with ftp I want link it with code inside header.
   php :
    <link rel=”shortcut icon” href=”[http://s.wordpress.org/favicon.ico&#8221](http://s.wordpress.org/favicon.ico&#8221);
   type=”image/vnd.microsoft.icon”/> <link rel=”icon” href=”[http://s.wordpress.org/favicon.ico&#8221](http://s.wordpress.org/favicon.ico&#8221);
   type=”image/x-ico”/> I don’t want edit header php code manually
 *  Plugin Author [bavington](https://wordpress.org/support/users/bavington/)
 * (@bavington)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854601)
 * No problem at all Grigione. Are you aware though that you can upload your Favicon
   automatically through my plugin, and the code that embeds the Favicon will automatically
   be added to the head?
 * Or would you prefer not to upload it via the WP Headmaster settings, and instead
   source it locally from your theme folder?
 * Or is it that you’re looking to have the two different <link rel tags whereas
   my plugin only deploys the one?
 * Hope that helps Grigione, thank you for your patience.
 *  Thread Starter [grigione](https://wordpress.org/support/users/grigione/)
 * (@grigione)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854602)
 * yes if is possible upload automatically favicon through plugin is best option
 *  Plugin Author [bavington](https://wordpress.org/support/users/bavington/)
 * (@bavington)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854603)
 * No problem, you can already do that through the plugin. Basically, if you use
   the ‘upload’/select .ico; button, you can upload your file, then press ‘insert
   into post.
 * This should then fill the field next to it with the URL to your upload.
 * If you see the second screenshot on this page: [http://wordpress.org/plugins/wp-headmaster/screenshots/](http://wordpress.org/plugins/wp-headmaster/screenshots/)
 * That shows a Favicon that has been uploaded through this method.
 * Once you have the URL to the .ico within the field, it will automatically add
   the <link rel within the <head> which is what you’re looking for.
 * Let me know if that works OK.
 *  Thread Starter [grigione](https://wordpress.org/support/users/grigione/)
 * (@grigione)
 * [13 years ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854604)
 * Ok thanks favicon problem resolved .Now only. I need TO link kml file
 *  Plugin Author [bavington](https://wordpress.org/support/users/bavington/)
 * (@bavington)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854640)
 * Thanks Grigione,
    I’ll consider the TO Link for a future update, but glad to 
   hear you resolved the ICO issue.

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

The topic ‘adding additional code in head’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-headmaster_70ac22.svg)
 * [WP Headmaster](https://wordpress.org/plugins/wp-headmaster/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-headmaster/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-headmaster/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-headmaster/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-headmaster/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-headmaster/reviews/)

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [head](https://wordpress.org/support/topic-tag/head/)
 * [kml](https://wordpress.org/support/topic-tag/kml/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 9 replies
 * 2 participants
 * Last reply from: [bavington](https://wordpress.org/support/users/bavington/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/adding-additional-code-in-head/#post-3854640)
 * Status: resolved