Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author livemesh

    (@livemesh)

    I see multiple errors in the JS console and they are related to the theme you are using. Pls contact your theme author about this. The error is –

    Uncaught TypeError: $ is not a function

    JQuery is not getting initialized right. The plugin itself should not cause this.

    Thread Starter Mike

    (@ukstocky)

    Ok, I have passed that on, I’ll let you know once they respond, thanks for checking though.

    Thread Starter Mike

    (@ukstocky)

    They have given me a solution, so I assume it’ll be useful to share it in case anyone else has the same issue:

    Yes the problem was of jQuery as we have mentioned before because we are using $ (which is used by most of the jQuery libraries) and that plugin is using jQuery as jQuery variable. So we have done below change which will load that plugin jQuery in head, so it will not interfere with theme jQuery. Please make sure to note down this change and do it whenever you update that plugin.

    In this file – /wp-content/plugins/addons-for-visual-composer/livemesh-vc-addons.php

    We have changed below line of code

    wp_register_script('lvca-frontend-scripts', LVCA_PLUGIN_URL . 'assets/js/lvca-frontend' . LVCA_BUNDLE_JS_SUFFIX . '.js', array(), LVCA_VERSION, true);

    TO

    wp_register_script('lvca-frontend-scripts', LVCA_PLUGIN_URL . 'assets/js/lvca-frontend' . LVCA_BUNDLE_JS_SUFFIX . '.js', array(), LVCA_VERSION, false);

    • This reply was modified 8 years, 5 months ago by Mike.
    • This reply was modified 8 years, 5 months ago by Mike.
    Plugin Author livemesh

    (@livemesh)

    Unfortunately we cannot make this change since the plugin frontend JS script needs to be loaded in the footer and not the head.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mega menu conflict’ is closed to new replies.