wow.js not working
-
WOW.js instructions are SO simple, and yet I can’t get it to work on my wordpress onetone-pro site http://demoseer.com/
My child functions.php has this in it:
add_action( 'wp_enqueue_scripts', 'my_child_theme_scripts' ); function my_child_theme_scripts() { wp_enqueue_style( 'animate-stylesheet', get_stylesheet_directory_uri() . '/animate.css', array(), '', 'all' ); wp_enqueue_script( 'wow-js', get_stylesheet_directory_uri() . '/wow.min.js', array('animate-stylesheet'), '', 'all' ); }The WOW documentation mentioned that the wow.min.js had a dependency for animate.css, so I think my enqueueing reflects that. It doesn’t work with or without that dependency in the enqueue.
This is also in my functions.php to initialize WOW in the header as per documentation:
function wow_init(){?> <script> new WOW().init(); </script> <?php } add_action( 'wp_head', 'wow_init' );Then I tried putting class=”wow” in various element tags via the custom code input in one section of onetone’s homepage. No scroll reveals. Nothing, ever.
I suspect that combinations of selectors are causing the wow class to not be found. I don’t know.
Any ideas (please!).
The topic ‘wow.js not working’ is closed to new replies.
