Support » Themes and Templates » How do I remove scripts from the header?

  • Hey Guys,

    I’ve got a theme which is causing some issues with scripts. I have no idea where to find the code which makes up the header file…

    My header.php page shows this:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <meta charset="<?php bloginfo('charset') ?>" />
    <title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title>
    <!--[if lt IE 9]><script src=""></script><![endif]-->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" media="screen" />
    remove_action('wp_head', 'wp_generator');

    which ends up creating this in the source code:

    <!DOCTYPE html>
    <html lang="en-US">
    <meta charset="UTF-8" />
    <title>Dale RA | My CMS</title>
    <!-- Created by Artisteer v4.0.0.58475 -->
    <!--[if lt IE 9]><script src=""></script><![endif]-->
    <link rel="stylesheet" href="" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="My CMS &raquo; Feed" href="" />
    <link rel="alternate" type="application/rss+xml" title="My CMS &raquo; Comments Feed" href="" />
    <link rel='stylesheet' id='admin-bar-css'  href='' type='text/css' media='all' />
    <link rel='stylesheet' id='imstore-css'  href='' type='text/css' media='all' />
    <link rel='stylesheet' id='ims-single-css'  href='' type='text/css' media='all' />
    <link rel='stylesheet' id='imstore-store-css'  href='' type='text/css' media='all' />
    <!--[if lte IE 7]>
    <link rel='stylesheet' id='style.ie7.css-css'  href='' type='text/css' media='screen' />
    <link rel='stylesheet' id='css-css'  href='' type='text/css' media='all' />
    <script type='text/javascript' src=''></script>
    <script type='text/javascript' src=''></script>
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="" />
    <link rel='canonical' href='' />
    	<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
    <style type="text/css" media="print">#wpadminbar { display:none; }</style>
    <style type="text/css" media="screen">
    	html { margin-top: 28px !important; }
    	* html body { margin-top: 28px !important; }

    Any ideas how I can clean up the code, and remove certain lines?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How do I remove scripts from the header?’ is closed to new replies.