That normally means that a non-standard template or plug-in has installed its own copy of jQuery in addition to the ‘official’ one.
Do you have two lines in your HTML installing jQuery?
Which plug-in or template is installing the second one? Can you disable it?
Alternatively, please send me a link.
Martin
Thread Starter
Patrick
(@zaanmedia)
It’s on my localhost. I use this template:
https://github.com/natejones/DigitalSignageWordpress
This line if jquery for theme: <script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js' type='text/javascript' charset='utf-8'></script>
I see if i remove the jquery loaded from the theme it’s working but than the theme does not work?
I’m totally noob with js or jquery.
Thanks
The core issue is that ‘DigitalSignageWordpress’ is (to put it mildly) not WordPress standards compliant.
In footer.php try replacing:
<?php wp_footer(); ?>
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js' type='text/javascript' charset='utf-8'></script>
with
<?php wp_enqueue_script('jquery'); wp_footer(); ?>
Martin
Thread Starter
Patrick
(@zaanmedia)
Hallo martin,
Thanks for the reply but not working.
Thanks for the help so far.
Patrick
I may need to see the page directly.
But what happens if you replace:
$(function() {
$(document).foundation();
});
with:
jQuery(function() {
jQuery(document).foundation();
});
in footer.php
Thread Starter
Patrick
(@zaanmedia)
Thank Martin,
Everything is working again.
Patrick