WordPress.org

Forums

Events Manager
[resolved] Desactivate Datepicker from code (14 posts)

  1. bagui
    Member
    Posted 1 year ago #

    Hello,
    It is possible to desactivate Datepicker from events manager front-office from the code source ? And how ?
    Thank you

    https://wordpress.org/plugins/events-manager/

  2. angelo
    NetWebLogic Support
    Posted 1 year ago #

    am afraid that this is not possible at the moment however can I know why you've wanted to do this?

  3. bagui
    Member
    Posted 1 year ago #

    Hello thanks for your response. I want to desactive Datepicker from the code because Datepicker Events Manager doesn't works in fromt form "Submit your event". I desactive all extensions but the problem continue.
    The Extension Manager is install with the theme Rounder WordPress Theme of Themeforest.
    I do not know what to do. Thanks

  4. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    It sounds like your theme is causing a jQuery conflict. Does the datepicker work with the default WordPress theme?

  5. bagui
    Member
    Posted 1 year ago #

    yes the Datepicker work width the default theme.
    That is the error width my theme : $.datepicker.setDefaults is not defined

  6. angelo
    NetWebLogic Support
    Posted 1 year ago #

    maybe your theme is loading another version jquery core and/or ui library which is conflicting to default wordpress jquery library? you can asked your theme provider for confirmation.

  7. bagui
    Member
    Posted 1 year ago #

    Hello
    The version of jquery is jQuery v1.10.2
    Thanks

  8. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Which version of WordPress do you have?

    Assuming you're using 3.9, it looks like your theme isn't loading jQuery in the correct way because that's an old version of jQuery.

    This article might help you locate the loading problem and provide a fix:
    http://msyk.es/blog/prevent-jquery-wordpress-theme/

  9. bagui
    Member
    Posted 1 year ago #

    ok I reas this article but I'm french.
    This is my domain site : http://www.chinon-vienne-loire.fr
    thanks

  10. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    A quick fix should be to find the point in your theme where it loads jQuery (probably in the header, footer or functions file) and remove it.

    That should make Events Manager load jQuery correctly and solve the problem.

  11. bagui
    Member
    Posted 1 year ago #

    I desactivate jQuery theme and activate jQuery Google last version but the problem persist and I have this error :
    Uncaught TypeError: Cannot read property 'length' of undefined

    after I desactivate jQuery theme and no activate jQuery Google last version and the problem persist.

    I have always this error :
    Uncaught TypeError: Cannot read property 'setDefaults' of undefined

    Thanks

  12. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Try it without using the Google version of jQuery - stop your theme from loading jQuery completely.

    When Events Manager finds jQuery isn't loaded it will tell WordPress to load it correctly.

  13. bagui
    Member
    Posted 1 year ago #

    Ok I desactive all jQuery Load. I haven't this error (Uncaught TypeError: Cannot read property 'setDefaults' of undefined) but now I have this error.
    It's normal, them dont load any jQuery :
    Uncaught ReferenceError: jQuery is not defined

  14. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    I think this is an issue you'll need to take up with your theme provider, since there is no problem when using the default WordPress theme.

    My guess is that it uses additional code to unload jQuery and load in a specific version, making it incompatible with plugins that need to use jQuery.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.