title: Window scroll function not working wordpress
body: <p>We have been looking for a while now but still haven't found the solution to this matter.</p>
  
  <p>We are designing the site in wordpress</p>
  
  <p>URL: <a href="http://jouwdesign.be/fontanella/site/lunchmenu/" rel="nofollow">http://jouwdesign.be/fontanella/site/lunchmenu/</a></p>
  
  <p>The golden menu (.submenu) has a script linked to it wich should add the class 'test' when scrolling vertically past 100 pixels. For some reason it wouldn't even display a classchange when inspecting in chrome or any other browser. We already tried to disable all custom js and plugins but no luck so far.</p>
  
  <p>Here is the jQuery:</p>
  
  <pre><code>jQuery(document).ready(function($) {
      $(window).scroll(function() {    
          var scroll = $(window).scrollTop();
  
          if ($(window).scrollTop() &gt;= 100) {
              $(".submenu").addClass("test");
          }
      });
  });
  </code></pre>
  
  <p>Anyone who has experienced the same problem in wordpress or any other ways?</p>
  
  <p>Thanks!</p>