title: Custom jQuery-function not working on WordPress even though other loaded jQuery functions are working
body: <p>I'm using WordPress 3.8.1. I want to use this function to use sticky header </p>
  
  <pre class="lang-js prettyprint-override"><code>&lt;script&gt;
  $(document).ready(function() {
      var $header = $("header"),
          $clone = $header.before($header.clone().addClass("clone"));
  
      $(window).on("scroll", function() {
          var fromTop = $(window).scrollTop();
          console.log(fromTop);
          $("body").toggleClass("down", (fromTop &gt; 200));
      });
  });        
  &lt;/script&gt;
  </code></pre>
  
  <p>But it is not working for me and I don't know why. I know that jQuery is shared to my WordPress because Flexslider 2 is now working fine.</p>