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

    (@mpntod)

    It’s very difficult to analyse this without seeing the page.

    What message are you getting on the console (if any)?

    How have you installed the Diapo slider? Are you using the standard wp_enqueue_script() function to install the script? If you install any JavaScript any other way, there’s a very high probability that things will start to break – often because you end up with multiple jQuery installations on the same page.

    Thread Starter breathelifein

    (@biellebrunner)

    Yeah, this is way out of my league… I tried following this post (https://wpcandy.com/teaches/how-to-load-scripts-in-wordpress-themes/) to install the script properly, but every single time it’d just crash the site and I’d get a message saying there was an error on my functions.php.
    Anyway, the site is on maintenance mode, but you can access it logging in: https://stanakaticbrasil.com/teste – user: testing / pass: 123testing
    If you could point me at least where exactly is the conflict, I’d be grateful.

    Plugin Author Martin Tod

    (@mpntod)

    The problem appears to be that the customised version of jquery-mobile breaks when it loads after the standard WordPress installation of jQuery.

    I think you’ve got two options:

    One is to keep going with Diapo – but install it with code along the lines of:

    <?php
    wp_enqueue_script( 'jquery-mobile-customised', get_template_directory_uri() . '/js/jquery.mobile-1.0rc2.customized.min.js', array('jquery') );
    wp_enqueue_script( 'jquery-easing', get_template_directory_uri() . 'js/jquery.easing.1.3.js', array('jquery','jquery-mobile-customised') );
    wp_enqueue_script( 'jquery-hoverintent', get_template_directory_uri() . '/js/jquery.hoverIntent.minified.js', array('jquery','jquery-mobile-customised','jquery-easing') );
    wp_enqueue_script( 'diapo', get_template_directory_uri() . 'js/diapo.js', array('jquery','jquery-mobile-customised','jquery-easing','jquery-hoverintent' ) );
    wp_enqueue_script( 'diapo', get_template_directory_uri() . 'js/yourscript.js', array('diapo' ) );
    ?>

    I think you may need to modify jQuery mobile to work with WordPress.

    Another much simpler option might be to use Rotating Tweets’ installed version of jQuery Cycle 2. Pick version 2 of the script on the settings page and replace:

    <div class="pix_diapo diapostarted">

    with

    <div class="rotatingtweets">

    All the options for jQuery Cycle 2 are here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict (even with JQuery disabled)’ is closed to new replies.