WordPress.org

Ready to get started?Download WordPress

Forums

Testimonials by Aihrus
[resolved] Javascript Conflict(s) (7 posts)

  1. maxbrown
    Member
    Posted 1 year ago #

    Michael,

    I'm testing out the plugin on a non-profit site I'm working on, but having an issue maybe you know how to fix. Essentially when Testimonial Widget is active, many other Javascript widgets don't function properly - e.g. ddsmoothmenu, nivoSlider. When I deactivate the plugin, everything works fine.

    Have you experienced this issue before?

    Thanks,
    - Max

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

  2. Michael Cannon
    Member
    Plugin Author

    Posted 1 year ago #

    Have you looked at the web browser developer tools console window to debug the conflicts?

    Are you running latest versions of all plugins and themes?

    Frequently, there's a theme conflict somehow.

  3. maxbrown
    Member
    Posted 1 year ago #

    Hi Michael,

    Thanks for the response.
    I am running the latest versions of everything.

    I don't think it's a theme conflict - it may be a ddsmoothmenu conflict though.

    The only console troubleshooting I've been able to see is that when I have the testimonials plugin active I get a new error:

    Uncaught TypeError: Property 'undefined' of object #<Object> is not a function
    coming from:
    jquery.easing.1.3.js:46

    And it hits (adds/increments a new error) every time I scroll.

    ddsmoothmenu also shows an error:

    Uncaught TypeError: Cannot call method 'children' of undefined
    coming from:
    ddsmoothmenu.js:110
    which is...
    header.$shadow.children('div:eq(0)').css({opacity:0})

    Any thoughts? This may well not be enough to help you help me, but maybe it'll spur a thought.

  4. Michael Cannon
    Member
    Plugin Author

    Posted 1 year ago #

    What's the URL?

  5. maxbrown
    Member
    Posted 1 year ago #

    I have it behind an under construction - site is chicagodebatecommission dot org, but you have to login from admin with tempuser/tempuser first and then navigate back to homepage to see it.

  6. Michael Cannon
    Member
    Plugin Author

    Posted 1 year ago #

    Okay, I see the site.

    Your theme as suspected is calling up old versions of jQuery files and such, 1.7.2 in fact. See if you can get the theme author to update and call in JavaScript files correctly via wp_enqueue_script and wp_register_script. Also, the scripts are all being loaded in the wp_head than wp_footer.

    Worst case scenario, I'd say comment out line 501 of testimonials-widget.php, to temporarily fix things.

  7. maxbrown
    Member
    Posted 1 year ago #

    Makes sense. And you're right, the temp fix works perfectly, they both play nice with 501 commented, but it's not ideal. I'll have to try the theme author - unfortunately I don't think I can hold my breath waiting for them to update.

    Thanks for the help, I really appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.