Support » Plugins and Hacks » [Resolved] adding additional code in head

[Resolved] 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?


Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author bavington


    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?


    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” >

    thanks and sorry for bad english

    Plugin Author bavington


    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 ?

    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” type=”image/vnd.microsoft.icon”/>
    <link rel=”icon” href=”http://s.wordpress.org/favicon.ico” type=”image/x-ico”/>
    I don’t want edit header php code manually

    Plugin Author bavington


    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.

    yes if is possible upload automatically favicon through plugin is best option

    Plugin Author bavington


    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/

    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.

    Ok thanks favicon problem resolved .Now only. I need TO link kml file

    Plugin Author bavington


    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 ‘[Resolved] adding additional code in head’ is closed to new replies.