My Calendar
[resolved] jQuery Interferance (4 posts)

  1. pyrogod117
    Posted 4 years ago #

    Hi, on my website I use a theme that uses jQuery for the food menus (restaurant website) and slider images, and it works fine, but now it broke My Calendar, and if I upgrade My Calendar, jQuery breaks the rest of the site... What can I do? It uses jQuery 1.4.2.



  2. Joe Dolson
    Plugin Author

    Posted 4 years ago #

    There's usually a solution, but it ultimately is pretty tweaky depending on the exact nature of the plug-ins you're using.

    It sounds like your existing scripts are dependent on an earlier version of jQuery than that used natively by WordPress. If you're enqueueing an earlier version of jQuery, than it's also likely that those menus and sliders are expecting jQuery not to be in no-conflict mode - which is the WordPress default.

    So, you'll have to either tweak your current scripts to support the standard WordPress usage of jQuery (current version, no-conflict mode), or you'll have to tweak My Calendar so that it's compatible with conflict mode and jQuery 1.4.2.

    Either way, you've got to tweak something - and without specific knowledge of the issues, I can't really give you any specific advice.

  3. pyrogod117
    Posted 4 years ago #

    I've been thinking about it, and what about just using conditional statements in the theme functions file to say only load the new jQuery for pages where My Calendar is displayed, since they don't need anything from the menus on those pages. Would this work? If so, what file in My Calendar are you loading the jQuery in?

  4. Joe Dolson
    Plugin Author

    Posted 4 years ago #

    That would work, presumably. jQuery is loaded in my-calendar-core.php, in the function mc_header_js().

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • My Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic