Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

[SOLVED] jquery functions with Atahualpa (help)


 
Prev Previous Post   Next Post Next
  #1  
Old Aug 15, 2013, 09:59 AM
weaponx
 
3 posts · Aug 2013
[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?
 

Bookmarks

Tags
function, functions.php, jquery, mouseover, plugin



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] jQuery Colorbox and Atahualpa c12281 Plugins & Atahualpa 2 Oct 30, 2012 02:14 PM
jQuery - can it only be called in functions.php? globalnerds Sidebars & Widgets 0 Jun 7, 2010 05:27 PM
PHP Catchable fatal error: themes/atahualpa/functions/bfa_meta_tags.php on line 169 Shamisen Plugins & Atahualpa 0 Apr 6, 2010 10:43 PM


All times are GMT -6. The time now is 02:04 PM.


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