<?php wp_head(); ?> needs to be right before </head>?


Staff member
According to the <a href="http://codex.wordpress.org/Function_Reference/wp_head" rel="nofollow noreferrer">Wordpress codex</a>, the wp_head(); should be located right before the closing head tag.

When I insert the code after the wp_head(); it works. But when I insert it before wp_head(); as it should be, it results in a blank space. Look at the picture to see what Firebug sais when it goes blank.

This is the code:

&lt;link rel="stylesheet" href="flexslider/flexslider.css" type="text/css" /&gt; &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="flexslider/jquery.flexslider.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript" charset="utf-8"&gt;   $(window).load(function() {

         slideshow: true,
         controlNav: false,
         directionNav: false,   animation: "slide",     slideshowSpeed: 4500,   animationDuration: 600,   

             });   }); &lt;/script&gt;

Firebug: <img src=" " alt="enter image description here">

How come is that? Any ideas?