• Hi!

    i seem to have a problem by which several parts of the <head> </head> contents loads twice on my site. It means waste of bandwith, of course.

    The bits which seem to load twice is all the plugins which are represented in the head. I use these plugins:
    Simple Tags 1.8
    Google Analytics for WordPress by Yoast v4.0
    Lightbox
    All in one Favicon 2.1

    All of them loads twice (some is javascript, some is meta tags).

    Does anyone know why? I can PM website address to anyone willing to assist me since the site is not official yet.

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must have some bit of code in your header.php twice.

    Specifically, I would check for this function:

    wp_head();
    Thread Starter beduicom

    (@beduicom)

    True!

    So which one should I delete? Here is my header:

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    	<link rel="shortcut icon" href="<?php bloginfo('template_url'); ?>/images/favicon.png" type="image/x-icon" />
    
    	<?php wp_get_archives('type=monthly&format=link'); ?>
    	<?php wp_head(); ?>
    <script type="text/javascript">
    /* <![CDATA[ */
    function inputcheck(obj,mode){
    	if(mode=="focus"){
    	obj.value=''
    	}
    }			
    
    startList = function() {
    if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes[i];
    if (node.nodeName=="LI") {
    node.onmouseover=function() {
    this.className+=" over";
      }
      node.onmouseout=function() {
      this.className=this.className.replace(" over", "");
       }
       }
      }
     }
    }
    window.onload=startList;
    /* ]]> */
    </script>
    <?php wp_head(); ?>
    </head>
    <body>
    <div class="wrap">
        <div class="header">
            <h1 class="logo"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
            <div class="description"><?php bloginfo('description'); ?></div><br>
    
            <ul class="menu" id="nav">
    
                <?php wp_list_pages('hide_empty=0&title_li='); ?>
    
            </ul>
        </div>
            <div class="content">
            	<div class="content_left">
                    <div class="content_right">

    Thanks for helping me out!

    It shouldn’t matter, but I’d try deleting the second one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Some parts of the of site loading twice?’ is closed to new replies.