On your SCROLL.JS file, add the line before anything else,
(function($){
And after everything else
})(jQuery);
This block will load you code after jQuery is loaded, and will avoid the errors.
Related Posts:
- True parameter but jquery register in header and not in the footer with wp_register_script
- Most elegant way to enqueue scripts in function.php with foreach loop
- Enqueuing Script in functions.php vs on the page
- jquery won’t load in footer
- How do I get a child theme to load scripts from the parent theme?
- Why won’t my scripts load?
- how to en-queue jQuery to load before the tag
- Attempt to change jQuery version caused White Screen of Death
- jQuery does not work
- In jquery use php variable to execute an enqueued jquery file
- Run a jquery script on on a certain template page
- wp_enqueue_script | Help me figure out what is causing jQuery is not defined
- How to load jQuery in TOP of wp_footer?
- Include Jquery libraries in wordpress theme?
- colorbox not loading in
- WordPress Jquery+scripts enqueue issue
- How to wp_enqueue_script with html?
- Remove snippets of JS from core
- How to load scripts/styles specific for a page
- WordPress Enqueue for homepage only, functions.php, wp-framework
- Correct Method to run scripts with dependencies without enqueue?
- deregister scripts on certain page
- Enqueue Script with data attributes
- AJAX handler throws 400 (Bad request) – why?
- ajax live search for post title
- How to enqueue every script in a folder automatically?
- Apply jquery script to only woocommerce product pages and categories
- Replacing select2 in admin backend for all selects
- How to save Uploaded image in custom option panel?
- wp_register_script not loading as expected
- Problem using is_single() to enqueue script from functions.php
- Use js script from one plugin in another plugin
- Dequeue Scripts and Style for Mobile not working?
- Enqueuing External Javascript functions.php
- How to enqueue JavaScript for specific WordPress pages only?
- Enqueue script o style only if a template part is loaded
- jQuery plugin function is not a function
- Display a function using AJAX
- Adding jQuery dependency prevents my script from enqueuing/loading
- Dequeue script in template isn’t working
- changing function wp_register
- Unable to get_the_content(); of a post in WordPress via AJAX
- Add external js file to footer with id
- Ajaxing function in widget class
- How to load some jquery code to make validation in the theme customizer?
- Can’t move jQuery to footer
- woocommerce target button with class after ajax update
- Move jQuery and Migrate to footer?
- Using multiple versions of jQuery while still calling it like WP likes
- If is multiple page templates
- WordPress doesn’t Load JQuery Now? Do I need to enqueue JQuery also?
- Why isn’t jQuery 2.1 loading in the header?
- wp_enqueue_script add integrity parameter
- Passing arguments to my function with do_action and add_action is not working
- Woocommerce checkout field maxlength, make input number field only (postcode)
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- How can I load a javascript file that is type=”module” the WordPress way?
- Load JS Script only for custom post types
- Register and enqueue style.css custom theme
- Enqueue scripts not working with if is page conditional tag in functions.php
- Replace menu links with # and add name to its li
- wp_is_mobile dequeue not working
- Register vendor JS/CSS only on pages that require them?
- Loading CDN that requires jQuery in WordPress
- wp_register_script(… $in_footer = true) not working
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Right way to update widget on dynamic new input field
- How to load jQuery in the footer – nothing works for me
- Only let plugin add actions to wp_head & wp_footer on single posts
- Move jQuery to the bottom of the page whilst keeping the WordPress jQuery
- Register and load scripts
- Wp_query function to search from product_title ‘OR’ product tags name
- Allow Post Author to be 0 on Update
- Trouble with adding a wp_enqueue_script on wordpress
- WP Ajax Function Always Returning undefined
- Scripts not appending to element in AJAX call – why?
- How to change the order of Jquery in the footer of my theme?
- How to search using ajax for exact phrase or words in an input field?
- enqueue styles for only mobile wp
- Jquery implementation not working on page reload
- I can’t enqueue my scripts – They literally aren’t being added to my site
- PHP mixed with some JS code to update WordPress theme settings
- Load jquery only for certain pages in the backend
- Jquery function working in Dev Console but not otherwise [duplicate]
- Change CSS for logged in users
- Always the Latest google jQuery instead of default WordPress jQuery
- Add a jQuery Function
- enqueue_script with filemtime javascript not working
- using jQuery on only one page
- Can’t call Javascript function – scope?
- Trying to register script in footer
- WordPress error when replacing local jQuery by externally-hosted
- Changing parent element’s class or style
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- echo custom fields with AJAX
- add_action wp_enqueue_script priority level only works for admins
- Scripts not loading when using the wp_enqueue_scripts action
- Adding jQuery datepicker to Custom Post Type Metabox [closed]
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- Enqueue script on every page except one