ryanemitchell
9/12/2017 - 4:58 PM

[Jquery for WordPress] for using jquery with wordpress avoiding "$ is not a function"

[Jquery for WordPress] for using jquery with wordpress avoiding "$ is not a function"

jQuery(document).ready(function ($) {
    // Your code here
});



<script type="text/javascript">
  jQuery(function($) {
    for(var i=0; i <= 20; i++) 
      $("ol li:nth-child(" + i + ")").addClass('olli' + i);
  });
</script>