Conflict with JS wordpress

Asked

Viewed 81 times

1

I’m learning how to turn a site into a wordpress theme, but I came across an error that I can’t solve:

Some plugins require me to have the HEAD code this code adds the JS of WP, and conflicts with the JS I used to develop the project. And if I delete the JS that I used in the project, the functions that used it stop working... Can anyone help me, as I do to reestablish the functions using the wordpress JS?

  • Post conflict errors that appear on your console

  • Utilize wp_deregister_script to remove the old and wp_register_script to add the new.

  • wp_deregister_script and wp_register_script worked, thanks!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.