[resolved] jQuery Conflict with other plugins (5 posts)

  1. WebEndev
    Posted 4 years ago #

    I found that when enabling the widget in TBTestimonials to display testimonials, it was conflicting with the Slider Pro plugin and causing my slider to not load.

    so in tb-testimonials.php I commented out line 705:
    //wp_register_script( 'jquery-footer', "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", false, '1.4.2', $this->load_js_in_footer ? 1 : 0 );

    And added this:

    This allowed my slider to properly load, but then TBTestimonials no longer rotated the testimonials - it just showed the loading graphic, but never loads a second testimonial.
    So that solution breaks TBTestimonials...

    I believe that the solution is for TBTestimonials to use the most current version of jQuery? It is now currently using version 1.4.2 from Google, and that is a very old version.

    Can this be fixed to use the latest version of jQuery from WordPress please?



  2. Travis Ballard
    Plugin Author

    Posted 4 years ago #

    If you disable loading jQuery in the footer under the General Settings tab it should resolve your issue. In the next version I'm going to do away with the loading the footer all together.Seems to cause a lot of issues and even though I have a work around it seems like a better idea to just do it that way and maybe help reduce some confusion.

  3. WebEndev
    Posted 4 years ago #

    Hi Travis,

    Ah yes, don't know why I didn't think of that. Disabling it from footer did indeed work.

    Loading in the footer is nice though, for performance reasons. But if you have to get rid of it, I understand.


  4. Travis Ballard
    Plugin Author

    Posted 4 years ago #

    Yeah it's nice and that's why I did it like that to begin with. Don't exactly recall the issue but I was having a problem getting the bundled jQuery to work correctly in the footer, so I unregistered it and used google's version.

    It's been causing issues for a while though so I think best solution is just to remove the option to load it in the footer or come up with a better way to go about doing it. I'll see about keeping it as I really don't want to remove existing functionality. Though it does appear to have an undefined index for js_in_footer that I'm about to release an update for soon.

  5. stresslessweb
    Posted 4 years ago #

    Another conflict I found was with WooCommerce.

    The Checkout page in WooCommerce loads the Order Details (below the Billing Address) via AJAX.
    The Order Details section was blank due to a failed AJAX call.

    Unchecking the "Load JavaScript in the footer?" option fixed.

    Thanks to this thread which pointed me to the solution.

    Posting it here in case someone else encounters this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TBTestimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.