Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Making Hero image animate as coded

Discussion in 'Misc WordPress Requests' started by bcworkz, Dec 2, 2017.

  1. bcworkz

    Guest

    Reply To: Making Hero image animate as coded, by bcworkz

    Ah, I was wondering how the animation was triggered. Yeah, a quirk of WP jQuery is it runs in “noConflict” mode, meaning the $ shortcut does not work. It can often be annoying, changing a lot of shortcuts for compatibility. It’s possible to add a “noConflict wrapper” around all of your code so the shortcut still works within. An example is here (first note, added by me): https://developer.wordpress.org/reference/functions/wp_enqueue_script/#user-contributed-notes

    User Andrei adds a strict mode variant of the same about halfway down the notes.

    Just FYI. And you’re very welcome!

    Reply To: Making Hero image animate as coded
     
    #1

Share This Page

Web Hosting