-2

The Wooslider plugin on my Wordpress site suddenly stopped loading images on all pages it's used on. Can somebody look into this and tell me what the issue is and how to fix it?

The error code I receive in the console is:

Uncaught ReferenceError: jQuery is not defined
    at (index):296

Thanks in advance!

2 Answers2

0

Remove all lines which link JQuery to your page and add below the line, which is fo latest version of 'JQuery`

<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>

in your code before </head> Something like

<head> 
  ....
  ....

  <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>

</head>

What this will do is load JQuery code before loading the contents of <body> ... </body> code.

Adding some links related to above problem

  1. Handling code which relies on jQuery before jQuery is loaded
  2. Best Practice: Where to include your tags
Vipin Yadav
  • 1,616
  • 1
  • 14
  • 23
-1

Please include jquery library link before you've added woo slider library.

Add this script to header.php in your wp theme

<script src="http://code.jquery.com/jquery-latest.js"></script>
  • Hi there, it worked! Thank you! How could it have happened suddenly that the jquery library was missing as it was working fine before with no changes? – user3081140 Mar 22 '18 at 07:21