WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. player.c64
    Member
    Posted 1 year ago #

    Thanks for this great plugin.
    Unfortunately is not compatible with my template.
    The problem is in my head section in this line
    wp_deregister_script('jquery');

    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 ?

    http://wordpress.org/extend/plugins/slideshow-jquery-image-gallery/

  2. player.c64
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic