[SOLVED] jquery functions with Atahualpa (help)
I have one jquery function for mouse movement - see it in action here.
I've put this code in g2.js file, and I've uploaded the file in atahualpa/js folder. I'm trying to edit functions.php and I've tried to add 2 basic things: Code:
wp_register_script ( 'g2', get_stylesheet_directory_uri() . '/js/g2.js', array( 'jquery' ), '', true ); Code:
add_action('g2', get_stylesheet_directory() . '/js/g2.js'); Can you please help me with this? |
Instead of editing Atahualpa's function.php try using this plugin. It has worked for me multiple times.
|
I've tried this plugin and I still can't get this function to work. I'm probably doing something wrong.
Can you (or anybody) please get this function to work on your test site / page and share the solution (with or without this plugin)? This would mean a lot to me. |
|
All times are GMT -6. The time now is 03:43 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.