• Resolved danbranigan

    (@danbranigan)


    Hi there,

    I’d really like to use your plugin, but I’m already using Jquery Cycle 2 for my slideshow.

    How can I get this to work?

    If I install the plugin, my slideshow is showing twice the number of slides – probably because the cycle script is being called twice!

    I tried disabling my original call but that stopped my slideshow from working altogther.

    Any ideas appreciated.

    Dan

    https://www.ads-software.com/plugins/rotatingtweets/

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

    (@mpntod)

    Hi Dan,

    The easiest answer is probably to tell RT to use your slideshow’s installation of Cycle 2.

    Is it a particular plug-in or template that is putting it there?

    Martin

    Thread Starter danbranigan

    (@danbranigan)

    Hi Martin

    Thanks so much for getting back to me.

    It’s not a plugin – it’s a custom theme of my own, where I’m calling the jquery.cycle plugin from the footer.

    How do I get RT to use my original instance of the cycle code?

    Cheers

    Dan

    Plugin Author Martin Tod

    (@mpntod)

    How are you adding the jquery.cycle2 plug-in?

    Are you using wp_enqueue_script()?

    Do you have any extra transitions added in on top?

    And do you have your own script loading at some point?

    Martin

    Thread Starter danbranigan

    (@danbranigan)

    Hey Martin

    Thanks agin for looking into this.

    I’m simply adding the cycle2 plugin script in the footer

    <script src="<?php bloginfo('template_url'); ?>/scripts/jquery.cycle2.min.js"></script>

    So, I’m not using wp_enqueue_script()?

    There are no extra transitions on top

    Regards

    Dan

    Plugin Author Martin Tod

    (@mpntod)

    That’s generally not the best way to do it – precisely because it causes clashes with other files.

    I’d suggest putting something like:

    function yourthemeslug_enqueue_script() {
    	wp_enqueue_script('jquery-cycle2',bloginfo('template_url').'/scripts/jquery.cycle2.min.js',array('jquery'));
    }
    add_action( 'wp_enqueue_scripts', 'yourthemeslug_enqueue_script' );

    in your functions.php file instead.

    This will give Rotating Tweets (and other plug-ins) the chance to deal with it!

    What’s your theme name?

    Thread Starter danbranigan

    (@danbranigan)

    Hi Martin,

    Thanks for the tip! I’m now calling jqyery cycle from my functions.php as you suggested

    function digitalcatapult_enqueue_script() {
      	 wp_enqueue_script('jquery-cycle2',get_template_directory_uri().'/scripts/jquery.cycle2.min.js',array('jquery'));
    }
    add_action( 'wp_enqueue_scripts', 'digitalcatapult_enqueue_script' );

    However the script still seems to be loading twice on the page – and my slideshow pager is showing twice the number of slides.

    If I rename the cycle scripts in your plugin folder then my slideshow works fine, but the tweets driven by your plugin stop scrolling/repeating.

    Many thanks

    Dan

    Plugin Author Martin Tod

    (@mpntod)

    Is your template called ‘digital catapult’ – or ‘digitalcatapult’?

    If so, I’ve uploaded a development version of Rotating Tweets that may fix your problem!

    Plugin Author Martin Tod

    (@mpntod)

    Hi Dan,

    Did it work?

    Martin

    Plugin Author Martin Tod

    (@mpntod)

    Hi Dan,

    The main version of the plug-in should now address this.

    Is it working for you?

    Best wishes,

    Martin

    Thread Starter danbranigan

    (@danbranigan)

    Hi Martin,

    REALLY sorry for not answering sooner.

    It’s all working perfectly now.

    BTW this is a superb plugin, and saves WP developers from a world off pain setting up the OAuth gubbins for each client.

    Thanks again!

    Dan

    Thread Starter danbranigan

    (@danbranigan)

    Oops spoke too soon.

    For some reason the latest version of your plugin causes the other instance of the Jquery cycle to double to number of links it creates for the cycle pager.

    https://www.digitalcatapultcentre.org.uk/

    See the 3 blank “pager” links one the main banner feature – what’s bizarre is that it doesn’t actually create any extra slides in the cycle – just extra blank cycle pager links.

    I’ve tried changing the class on my pager so it’s not using the default class=”cycle-pager”, but that hasn’t made any difference.

    Sorry to keep bringing you aggro!

    Dan

    Thread Starter danbranigan

    (@danbranigan)

    From what I can find out this can happen if the Jquery Cycle script gets fired twice.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Cycle plugin conflict if already using jquery cycle’ is closed to new replies.