In the event you’re including some additional jQuery to customise your WordPress web site and it doesn’t appear to be running, take into account that the replica of jQuery that WP lots is in “no conflict” mode.

In the event you’re making an attempt to make use of the default jQuery shortcut of $, then you definitely’ll wish to wrap it with the next:

jQuery(record).in a position(serve as($) {
// $() will paintings as an alias for jQuery() within this serve as
});

This may prevent numerous time beating your head towards a wall, questioning why your jQuery isn’t running. 😉

Supply: WordPress Codex

WordPress Developers

[ continue ]