Support » Plugin: Accordion Image Menu » Stop Loading jQuery Incorrectly

  • Your plugin is breaking all other jquery based plugins

    Load jquery correctly and do not hard code it.

    This needs to be fixed asap as its causing a lot of problems

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author alaingg

    (@alaingg)

    Which plugin, please be more specific.
    The most recent releases includes jQuery using the wp_enqueue_script.
    What plugin cause this conflict on your website?

    heikkiheer

    (@heikkiheer)

    Hi Alain
    Same problem here. The images are loaded but they are displayed side by side without the accordion function. The option “Include jQuery – Uncheck if other …” does not seem to have any effect. It seems that there are two query-ui-… loaded. One is your: jquery-ui-1.8.10.custom.min.js. The other seems to be with version 1.7 and no custom. I am not a coder but.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    heikkiheer

    (@heikkiheer)

    Someone else wrote here something interesting about two jquery libraries

    heikkiheer

    (@heikkiheer)

    GET http://web192.login-105.hoststar.ch/publicsite/wp-includes/js/ver=20101110
    404 Not Found
    from my post above seems not to find that file here:
    l10n.js

    But be careful with my posts – I really am not a coder at all.

    heikkiheer

    (@heikkiheer)

    And Chrome Browser tells me:
    resource interpreted as script but transferred with mime type text/x-js

    I’ll ask my provider if this is a server side setting that has to be changed to content-type:application/x-javascript

    I’ll then post the answer/result here.

    heikkiheer

    (@heikkiheer)

    The problem lies not on the server side. Its the theme. I use Thesis theme 1.8.2. I then changed to Custom Community 1.8.3. and guess what: accordion image menu worked fine! At least I know where to look now.

    heikkiheer

    (@heikkiheer)

    The problem seems to be that the accordion code is working with $ instead the term jQuery.

    heikkiheer

    (@heikkiheer)

    HAHAAAAA! Muahhahah! GOT IT!

    Here is the reason for the problem when using accordion image menu with thesis theme:
    wordpress jquery and some other jquery library are conflicting because the accordionImageMenu-0.4.js seems to be referring to the wrong jquery library.

    How to fix it:
    1. Open accordionimagemenu-0.4.js
    2. replace (function( $ ){ with $(document).ready(function(){ in the beginning of the script.
    3. replace the last line })( jQuery ); with });
    Done.

    I’ve tested my customization not to every extend. And as a mentioned before: I am no coder so I do not really know what I am doing here. I just try to do it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Stop Loading jQuery Incorrectly’ is closed to new replies.