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 8930689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:56:45+00:00 2026-06-15T08:56:45+00:00

I’m still quite new to wordpress, and having built and developed my first theme

  • 0

I’m still quite new to wordpress, and having built and developed my first theme (that all works fine). My second attempt at a CMS site on wordpress I am having some trouble with. That trouble being the jQuery.
The site all works (bar the jQuery) which is the frustrating part, after reading up about how to correctly call jQuery in wordpress, I read that the proper way to do it is via enqueue the script in the functions file.
Taking the code from my functions.php from my first site and using it on this one

<?php
function fff_script_method() {
    wp_deregister_script( 'jquery' );
    wp_register_script( 'jquery', '/themes/wahoo/js/jquery.min.js');
    wp_enqueue_script( 'jquery' );
}
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
add_action('wp_enqueue_scripts', 'fff_script_method');
?>

But it doesn’t seem to work this time round, and I also need to call various scripts, last time round I called this script via functions.php and the rest in my header.php file using the regular method

<script type="text/javascript" src="/wp-content/themes/wahoo/js/jquery.imagesloaded.js"></script>

But again this doesn’t seem to be working this time round, and any changes I make in the function.php file just result in a syntax error which then means I have to replace the file on the FTP again.
It’s incredibly frustrating and I can’t seem to figure out why the jQuery is loading this time round, I have also gone to the effort of making sure my jQuery files aren’t conflicting and using ‘jQuery’ instead of ‘$’.
Any advice would be greatly appreciated, and how do you correctly register and enqueue more than one script so I can see if that works too?

  • 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-15T08:56:47+00:00Added an answer on June 15, 2026 at 8:56 am

    Rather than de- and re-registering jQuery (which shouldn’t be necessary if you’re avoiding conflicts), try this:

    function imagesloaded_script(){
          wp_register_script('imagesloaded', get_template_directory_uri() . '/js/jquery.imagesloaded.js', 'jquery');
          wp_enqueue_script('imagesloaded');
        }
    
    add_action( 'wp_enqueue_scripts', 'imagesloaded_script');
    

    The function calls wp_register_script with three arguments: 1) a string to name the script, 2) the path of the script using get_template_directory_uri() to make sure you aren’t messing up the paths, and 3) any dependancies – jQuery in this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into

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.