I’m trying to use jquery in my pages on a wordpress install, and nothing seems to work.
it is called via php line (if i got it right) :
wp_enqueue_script(‘jquery’);
I am assuming some jquery scripts are working (the ones coming together with the theme i’m using) but for some reason no single other script that i’d like to add will function.
I tried implementing it/them in the header of my index page, or in a js file, but none of these methods seem to work.
here is the link : http://selectedworx.com
thank you for any hint on how to get it working… it’s driving me nuts :/
DEMO: http://jsfiddle.net/7uAUg/
Your code seems to be working fine, the $ operator is likely being assigned to a different meaning. This is likely happening in one of the 40+ includes that happen in your page.
is the only exception you are experiencing so instead of
use
as stated by @wirey
Try to add
<?php wp_head();?>
inside your header and inside your footer<?php wp_footer();?>
Also add no-conflict mode for your Jquery: