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)

Old Aug 15, 2013, 09:59 AM
3 posts · Aug 2013
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:
wp_register_script ( 'g2', get_stylesheet_directory_uri() . '/js/g2.js', array( 'jquery' ), '', true );
wp_enqueue_script ( 'g2' );
add_action('g2', get_stylesheet_directory() . '/js/g2.js');
neither one won't work.

Can you please help me with this?
Old Aug 15, 2013, 10:08 AM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
Instead of editing Atahualpa's function.php try using this plugin. It has worked for me multiple times.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Aug 15, 2013, 11:08 AM
3 posts · Aug 2013
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.
Old Aug 15, 2013, 03:23 PM
3 posts · Aug 2013
I've finally found the complete solution which actually works - see it here.



function, functions.php, jquery, mouseover, plugin

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:00 AM.

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