[resolved] Problem register jquery. Plugin doesn't work. (3 posts)

  1. player.c64
    Posted 2 years ago #

    Thanks for this great plugin.
    Unfortunately is not compatible with my template.
    The problem is in my head section in this line

    If I delete it most plugin stop work, slideshow working perfect then.
    I was trying register jquery to slideshows.php

    function SlideshowPluginMain() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
        wp_enqueue_script( 'jquery' );
    add_action('wp_enqueue_scripts', 'SlideshowPluginMain');

    Plugin working after that but most plugins don't.
    How to register properly JQuery in slideshow plugin ?


  2. player.c64
    Posted 2 years ago #

    I resolved it myself.
    Maybe for somebody will be useful

    I Added to SlideshowPlugin.php
    wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js');

    In header.php in template directory
    after <?php wp_deregister_script('jquery'); ?>
    I added <?php wp_enqueue_script( 'jquery' ); ?>

    Thanks again for this great plugin.

  3. Stefan Boonstra
    Plugin Author

    Posted 2 years ago #

    Thanks for letting me know, I'll have a look at in the next release.

    I'm glad you were able to resolve it!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Slideshow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic