Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   [SOLVED] jquery functions with Atahualpa (help) (http://forum.bytesforall.com/showthread.php?t=20780)

weaponx Aug 15, 2013 09:59 AM

[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 );
wp_enqueue_script ( 'g2' );

and
Code:

add_action('g2', get_stylesheet_directory() . '/js/g2.js');
neither one won't work.


Can you please help me with this?

lmilesw Aug 15, 2013 10:08 AM

Instead of editing Atahualpa's function.php try using this plugin. It has worked for me multiple times.

weaponx Aug 15, 2013 11:08 AM

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.

weaponx Aug 15, 2013 03:23 PM

I've finally found the complete solution which actually works - see it here.

solved.


All times are GMT -6. The time now is 03:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.