WordPress.org

Ready to get started?Download WordPress

Forums

Arconix FAQ
[resolved] Arconix toggle functions and latest jquery (7 posts)

  1. KlausHermann
    Member
    Posted 1 year ago #

    Hi!

    One of the themes I use (MH Corporate) calls the latest jQuery version 1.9+ from Google instead of using the standard 1.8.3 Version of WP.

    I read that the toggle function was removed from version 1.9 onwards. I assume that this is the reason why Arconix FAQ and the Accordeons and Tabs don't work with this theme. Is my assumption correct?

    If so, are there plans to modify the Acronix shortcodes to be compatible with the latest jQuery?

    Thank you very much for your attention!

    http://wordpress.org/extend/plugins/arconix-faq/

  2. John Gardner
    Member
    Plugin Author

    Posted 1 year ago #

    Hi KlausHermann,

    Thanks for using my plugin. Your assumption is correct. Version 1.9 of jQuery removed a function that my plugin uses, which causes the toggle to break. Addressing that issue is on the roadmap for when I start development on the next version of the plugin.

    Thanks!

  3. Saxafrass
    Member
    Posted 11 months ago #

    What is the timeframe on having the newest release? Or is there a quick fix. I have a client that refuses to let their site go live with it not working. Thanks,
    -j

  4. John Gardner
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Saxafrass,

    Thanks for using my plugin. Because WordPress hasn't updated to jQuery 1.9.x yet I haven't spent much time investigating a fix, so I'm not 100% sure how easy/difficult it is.

    To be perfectly honest, I typically update my free plugins when a client needs additional functionality that my plugins lack, or when I occasionally happen to have spare time.

    Realistically I wouldn't be addressing this until this fall at the earliest. If you're really pressed to get a fix for this however, I'd suggest e-mailing me (john [@] arconixpc.com) and we can talk about getting this done for you via some custom development.

  5. KlausHermann
    Member
    Posted 11 months ago #

    Hi Saxafrass,

    in the meantime I found something that might be of help: please look at
    http://blog.jquery.com/2012/12/17/jquery-1-9-beta-1-released/

    There you'll find a suggestion how to load the missing functions of the "old" JQuery version.

    Following that advise I added the line:

    wp_enqueue_script('jquerymigrate', 'http://code.jquery.com/jquery-migrate-1.0.0b1.js');

    to my functions.php, just following the line calling the current JQuery version.

    This worked perfectly for me. Arconix Shortcodes are working again. :-)

    Instead of calling the latest JQuery AND the patch you may also just call up the old 1.8.3 version, if the latest JQuery version should not be nessecary. Use something like:

    wp_enqueue_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');

    Hope I could be of help for you.

    regards, Klaus

  6. John Gardner
    Member
    Plugin Author

    Posted 11 months ago #

    Thank you Klaus for your help. If I may offer a suggestion: the proper way to enqueue that migration script so that it loads after jQuery would be the following:

    wp_enqueue_script('jquerymigrate', 'http://code.jquery.com/jquery-migrate-1.0.0b1.js', 'jquery');

    That last parameter 'jquery' is a dependency parameter. That means no matter where you include the enqueue script function, it will always load the migrate script after jQuery is loaded.

  7. KlausHermann
    Member
    Posted 11 months ago #

    Thank you John for yor help. I'm still a beginner using WordPress, PHP, etc., so I really don't know anything about the proper parameters. I just ran into the problem of your nice toggle functions not working any more, applied the fix suggested by JQuery and was happy to see that everything worked fine.

    But your suggestion sounds sensible, so I applied it.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags