Editing JavaScript used on week view

Home Forums Calendar Products Events Calendar PRO Editing JavaScript used on week view

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1071765
    Eliza
    Participant

    Hello,

    I was looking through the docs and found how to edit the template files by creating a tribe-events folder in my theme’s directory. I’m wondering: is it possible to overwrite the JavaScript in a similarly easy way?

    Thank you,
    Gaelen

    #1071792
    George
    Participant

    Hey @Eliza / Gaelen,

    It is unfortunately not possible to overwrite JavaScript in a similarly-easy way 🙁

    There is no infrastructure in place for replacing the default JavaScript files; you would essentially have to write your own JavaScript files with the desired customizations and then load them with wp_enqeue_script()https://codex.wordpress.org/Function_Reference/wp_enqueue_script

    I hope this information helps, despite being perhaps a bit disappointing.

    Cheers!
    George

    #1072261
    Eliza
    Participant

    Hey George,

    Thanks for that I did end up using it to remove those scripts and add copies from within my theme. (For those who consider going down this path this does get a bit hairy)

    Best,
    Gaelen

    #1072871
    George
    Participant

    Thanks for the update, Gaelen; I’m sorry about doing this can indeed be a bit of a pain, but am glad you were able to achieve some measure of success here.

    Be sure to make backups of any custom code or modified code on your site!

    Cheers,
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Editing JavaScript used on week view’ is closed to new replies.