Thanks in advance for any help anyone will give me!
have a good understanding of WordPress and I have been able to create my own custom theme from scratch and manipulate it the way I want to.
The next step for me was to implement some cool jQuery plugins to extend my abilities!
The thing is I’ve tried every single tutorial out there, read everyting about wp_enqueue and wp_register etc. etc. !
The good news: I can see both jQuery and any other custom jQuery script I use, loading in the source of a browser in the header.
The bad news: Although the custom script is being loaded it isn’t working.
Here is some example code from my theme’s functions.php :
(Oh before that: I am using “Use Goggle Libraries” WordPress Plugin to load jQuery, so I’m not queueing it again in the functions.php).
// Register the script like this for a theme:
wp_register_script( ‘custom-script’, get_bloginfo(‘template_directory’) . “/js/custom-script.js” );
// For either a plugin or a theme, you can then enqueue the script:
wp_enqueue_script( ‘custom-script’ );
add_action( ‘wp_enqueue_scripts’, ‘custom_scripts_load’ );