jquery - '$ is not a function' rev 17 january 2013 _______________________________________________________________________________ this happens when ... * loading in wordpress. "The jQuery library included with WordPress loads in 'no conflict' mode. This is to prevent compatibility problems with other javascript libraries that WordPress can load." * may happen in other circumstances, i don't know yet. _______________________________________________________________________________ fix it by ... replace the '$' with 'jQuery' (the object name). OR define the $: jQuery(document).ready(function($) { "the dollar $ object isn’t defined in WordPress jQuery (historical reasons)" so we define it here. _______________________________________________________________________________ example: // original: $(document).ready(function(){ $(".privpol").colorbox({width:"50%", inline:true, href:"#popup"}); }); // change to: jQuery(document).ready(function(){ jQuery(".privpol").colorbox({width:"50%", inline:true, href:"#popup"}); }); _______________________________________________________________________________ resources: https://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers _______________________________________________________________________________ written 17 january 2013 -- 0 --