WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] javascript is not working on Event Submission? (5 posts)

  1. Bhuvnesh Gupta
    Member
    Posted 1 year ago #

    Javascript is not working on Submit Events Page .
    I found the reason behind this was that I have written a line of code in functions.php to call jquery file.

    wp_enqueue_script('jquery-1.7.2',get_template_directory_uri().'/js/jquery-1.7.2.min.js');

    When I remove this line of code then javascripts start working fine on Event Submission Page but this file is important for me because I am using this file at many places so I can not remove this.

    Please give me any solution!

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    another way is to add a php condition to filter or deactivate that line once the user is in your events submission page.

  3. Bhuvnesh Gupta
    Member
    Posted 1 year ago #

    @agelonwl Please tell me how to do it disable.

  4. agelonwl
    Member
    Posted 1 year ago #

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    leaving that line in the first place is wrong, you can't expect other plugins to work with earlier versions of jQuery if WP supplies later ones.

    you should consider fixing whatever needs fixing in your theme to work with the latest jQuery files provided by WP. otherwise you'll run into more problems with EM and other plugins in the future.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic