Deactivate AJAX

Home Forums Calendar Products Events Calendar PRO Deactivate AJAX

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #703767
    deafnesssupport
    Participant

    We have a website that loads a jQuery file to change the websites color scheme for those who have difficulty with their site.
    I have added a custom style sheet to load new styles for the plugin as and when the user changes the color scheme setting using jQuery addClass etc.
    If the user changes the color scheme and then searches the calendar, the calendar then reverts back to the original styling.
    How can I deactivate the ajax function all together?

    #704219
    Brian
    Member

    Hello,

    I can help you out with this. There is not setting to disable ajax, but you can use a WordPress function(wp_dequeue_script) to remove the ajax scripts.

    I wrote a quick function that does it on the month, list, and event views. If you need more then that, I suggest search for the scripts in the coding to find scripts with ajax in their name and remove them.

    Here is the link to the basic function that you can put in your theme’s functions.php:

    http://pastebin.com/TujLEBYi

    Let me know if that helps or you have trouble locating a script.

    Thanks

    #761493
    Brian
    Member

    This thread’s not seen much activity recently so I’ll go ahead and close it. Of course if you still need help with this or any other issue please don’t hesitate to create a new thread (or threads) and one of the team will be only too happy to help. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Deactivate AJAX’ is closed to new replies.