Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Martin Tod

    (@mpntod)

    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

    Plugin Author Martin Tod

    (@mpntod)

    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

    Plugin Author Martin Tod

    (@mpntod)

    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

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Plugin does not scroll’ is closed to new replies.