Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8192181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:07:07+00:00 2026-06-07T04:07:07+00:00

I just switched the way my wordpress theme loads jQuery from manually loading google’s

  • 0

I just switched the way my wordpress theme loads jQuery from manually loading google’s version to enqueuing the version that comes with wordpress. The version that comes with wordpress has “noconflict()” in it so the $ shortcut no longer works in all my jQuery and instead I need to use “jQuery” in it’s place.

I have a lot of .js scripts and a lot of jquery setting initializations on pages and now none of it works because it was all using the shorthand $.

My question is, assuming I NEED to use the noconflict version that comes with wordpress, what is the best way to fix my shorthand code?

Should I add a line like this to the top of each script?

jQuery(document).ready(function($) {

or should I “Find in files” all $ and replace with jQuery?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:07:08+00:00Added an answer on June 7, 2026 at 4:07 am

    WordPress recommendation: a good read http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers

    http://api.jquery.com/jQuery.noConflict/

    code

    (function($) {
        // $() will work as an alias for jQuery() inside of this function
    })(jQuery);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just switched from Eclipse to IntelliJ and noticed that when I use Reformat
I've got a pretty popular WordPress theme that has a template switcher (basically just
I just switched from C++ to Java. I'm trying to write a program that
I just updated jQuery from 1.6.2 to 1.6.3 and find out that inline edit
So i just switched from xcode 4.2 to 4.3 and now my old way
Just switched over from eclipse to vs 2008 for debugging javascript, i feel more
I just switched from Eclipse to IntelliJ. IntelliJ lacks one feature from Eclipse -
I just switched my code from Objective-C to Objective-C++. Everything goes swimmingly except for
I just switched from storing my images uploaded via Carrierwave locally to using Amazon
I just switched from Eclipse to NetBeans IDE 6.8 for my PHP/Ajax development. Eclipse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.