WordPress.org

Forums

How do I remove scripts from the header? (2 posts)

  1. totallytech
    Member
    Posted 1 year ago #

    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(); ?>>
    <head>
    <meta charset="<?php bloginfo('charset') ?>" />
    <title><?php wp_title('|', true, 'right'); bloginfo('name'); ?></title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url') ?>" media="screen" />
    <?php
    remove_action('wp_head', 'wp_generator');
    wp_head();
    ?>
    </head>

    which ends up creating this in the source code:

    <!DOCTYPE html>
    <html lang="en-US">
    <head>
    <meta charset="UTF-8" />
    <title>Dale RA | My CMS</title>
    <!-- Created by Artisteer v4.0.0.58475 -->
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    
    <link rel="stylesheet" href="http://albums.QQQQ.co.uk/wp-content/themes/IWPNewV25/style.css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="My CMS &raquo; Feed" href="http://albums.QQQQ.co.uk/feed/" />
    <link rel="alternate" type="application/rss+xml" title="My CMS &raquo; Comments Feed" href="http://albums.QQQQ.co.uk/comments/feed/" />
    <link rel='stylesheet' id='admin-bar-css'  href='http://albums.QQQQ.co.uk/wp-includes/css/admin-bar.min.css?ver=3.6' type='text/css' media='all' />
    <link rel='stylesheet' id='imstore-css'  href='http://albums.QQQQ.co.uk/wp-content/plugins/image-store/_css/imstore.css?ver=3.3.2' type='text/css' media='all' />
    <link rel='stylesheet' id='ims-single-css'  href='http://albums.QQQQ.co.uk/wp-content/plugins/image-store/_css/single.css?ver=3.3.2' type='text/css' media='all' />
    <link rel='stylesheet' id='imstore-store-css'  href='http://albums.QQQQ.co.uk/wp-content/plugins/image-store/_css/store.css?ver=3.3.2' type='text/css' media='all' />
    <!--[if lte IE 7]>
    <link rel='stylesheet' id='style.ie7.css-css'  href='http://albums.QQQQ.co.uk/wp-content/themes/IWPNewV25/style.ie7.css?ver=3.6' type='text/css' media='screen' />
    <![endif]-->
    <link rel='stylesheet' id='css-css'  href='http://fonts.googleapis.com/css?family=Ubuntu&subset=latin&ver=3.6' type='text/css' media='all' />
    <script type='text/javascript' src='http://albums.QQQQ.co.uk/wp-content/themes/IWPNewV25/jquery.js?ver=3.6'></script>
    <script type='text/javascript' src='http://albums.QQQQ.co.uk/wp-content/themes/IWPNewV25/script.js?ver=3.6'></script>
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://albums.QQQQ.co.uk/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://albums.QQQQ.co.uk/wp-includes/wlwmanifest.xml" />
    <link rel='canonical' href='http://albums.QQQQ.co.uk/galleries/dale-ra' />
    	<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; }
    </style>
    </head>

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

  2. WPyogi
    Forum Moderator
    Posted 1 year ago #

    What theme is it and where did you get it?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.