WordPress.org

Ready to get started?Download WordPress

Forums

TBTestimonials
Howto use "jQuery Cycle Lite" instead ? (3 posts)

  1. Jan van Dank
    Member
    Posted 2 years ago #

    The minified fade transition I'm using needs about 19 KB. However, jQuery Cycle Lite just needs 4 KB...
    Would it be possible to use that one instead? And if so how?

    http://wordpress.org/extend/plugins/tb-testimonials/

  2. Paul de Wouters
    Human Made
    Posted 2 years ago #

    yes it's possible:

    upload the jquery cycle plugin file to a /js subfolder in your theme,
    in your functions.php file, create a new function:

    add_action('wp_enqueue_scripts','my_load_cycle_lite');
    function my_load_cycle_lite(){
        // replace TB testimonials script with a lightweight version
        wp_deregister_script('jquery-cycle');
        wp_register_script('jquery-cycle', get_stylesheet_directory_uri() . '/js/jquery.cycle.lite.js', array('jquery'), '', true);
        wp_enqueue_script('jquery-cycle');
    }
  3. Jan van Dank
    Member
    Posted 2 years ago #

    Thank you Paul!

    I'm going to try this out soon and see if it successfully works.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic