Skip to content
UFO Performance Marketing

Where intelligence is put to the test.

HomeServicesOur WorkBlogAboutContact Us
MenuClose

Explore UFO

HomeServicesOur WorkBlogAboutContact Us

Where intelligence is put to the test.

WordPress · Oct 16, 2014

wp_enqueue_script(), jQuery, and WordPress

wp_enqueue_script(), jQuery, and WordPress
JC
John Crenshaw
Oct 16, 2014
jQuery and WordPress

A quick note on using jQuery with WordPress for those having any trouble with it. I decided to use wp_enqueue_script() to include the jQuery library in a recent project and discovered the jQuery code wouldn't do anything.

After a bit of searching, I discovered the solution was to replace all the "$()" in my jQuery code with "jQuery()".

Apparently, in order to prevent collisions with the Prototype javascript framework, which also uses "$()", you have to use jQuery() instead of $() for all your jQuery functions to work with wp_eneque_script().

WordPress

Get the latest from UFO

Keep reading

More from the blog

All Posts →
Using WordPress Custom Fields
WordPress

Using WordPress Custom Fields

Using WordPress as a CMS often for client sites I use custom fields perhaps quite a bit more than the regular WordPress user.

John Crenshaw · Oct 16, 2014
Require Login for WordPress Pages
WordPress

Require Login for WordPress Pages

I recently worked on a project that required the ability to only allowed logged-in users access to a particular page. Here's how I got it done.

John Crenshaw · Oct 16, 2014
Multiple WordPress Sidebars with get_sidebar()
WordPress

Multiple WordPress Sidebars with get_sidebar()

In this article I show you how to use the get_sidebar() function to call multiple sidebars (as many as you want) in your WordPress theme.

John Crenshaw · Oct 16, 2014

Want results like these?

Let's talk about where you are, where you want to go, and the smartest way to get there.

Contact Us
UFO

Where intelligence is put to the test.

  • Home
  • Services
  • Our Work
  • Cool People Saying Smart Things
  • About
  • Partners
  • Testimonials
  • Blog
  • Marketing Library
  • Agency Guides
  • Careers
  • Contact Us

Offices

  • Cincinnati, OH
  • Columbus, OH
  • Portland, OR
  • (513) 549-7355
Contact Us
Google 5.0 five star rating Google Ads Premier Partner 2026
© Copyright 2026 UFO Marketing. All rights reserved. Privacy Policy | Terms of Use