Support » Plugin: User Language Switch » There is an issue in the js_script.js

  • Resolved codepeople

    (@codepeople)


    Hi,

    I recommend you modify a little the js_script.js file, to avoid the error: “$ is not a function”, that I’ve detected in some websites.

    The current code of file is:

    $ = jQuery;

    $(document).ready(function(){…});

    But the correct is:

    jQuery(document).ready(function($){…});

    The “$” is passed as parameter to the function executed in the ready event.

    http://wordpress.org/plugins/user-language-switch/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘There is an issue in the js_script.js’ is closed to new replies.