Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

[SOLVED] jquery functions with Atahualpa (help)


  #1  
Old Aug 15, 2013, 09:59 AM
weaponx
 
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:
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?
  #2  
Old Aug 15, 2013, 10:08 AM
lmilesw's Avatar
lmilesw
 
10,174 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.
  #3  
Old Aug 15, 2013, 11:08 AM
weaponx
 
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.
  #4  
Old Aug 15, 2013, 03:23 PM
weaponx
 
3 posts · Aug 2013
I've finally found the complete solution which actually works - see it here.

solved.

Bookmarks

Tags
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 04:17 PM.


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