According to the wp_register_script() Codex the first parameter handle should have a unique name.
If we look at the paramters of the wp_register_script() function it breaks down like this:
wp_register_script( $handle, $src, $deps, $ver, $in_footer );
So your wp_register_script() function should also break down into a similar way:
wp_register_script( 'dropmenu1', get_bloginfo('template_directory') . '/js/jquery.dropmenu.js', array('jquery'), '', false);
Related Posts:
- wp_enqueue_script was called incorrectly
- AJAX handler throws 400 (Bad request) – why?
- ajax live search for post title
- Apply jquery script to only woocommerce product pages and categories
- How to display error messages using WP_Error class?
- Replacing select2 in admin backend for all selects
- How to save Uploaded image in custom option panel?
- Remove Menu Page Giving Error
- Display a function using AJAX
- Functions.php reverted to new one
- Add external js file to footer with id
- Ajaxing function in widget class
- woocommerce target button with class after ajax update
- Move jQuery and Migrate to footer?
- Why is my Gutenberg block returning an error after initial save?
- jquery won’t load in footer
- WordPress doesn’t Load JQuery Now? Do I need to enqueue JQuery also?
- Debugging with functions.php
- Replace menu links with # and add name to its li
- Loading CDN that requires jQuery in WordPress
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Right way to update widget on dynamic new input field
- Wp_query function to search from product_title ‘OR’ product tags name
- Scripts not appending to element in AJAX call – why?
- How to change the order of Jquery in the footer of my theme?
- Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images
- How to search using ajax for exact phrase or words in an input field?
- Jquery implementation not working on page reload
- Parse error after modifying the template menu [closed]
- I can’t enqueue my scripts – They literally aren’t being added to my site
- Attempt to change jQuery version caused White Screen of Death
- PHP mixed with some JS code to update WordPress theme settings
- Load jquery only for certain pages in the backend
- Change CSS for logged in users
- Always the Latest google jQuery instead of default WordPress jQuery
- Add a jQuery Function
- using jQuery on only one page
- help I changed one currency in woocommerce and everything is ruined [closed]
- Need help getting a function to function
- Connecting to a 2nd DB gives me no results when querying
- Enqueuing latest version of jQuery into a child theme returns a blank screen
- echo custom fields with AJAX
- Functions Error: Impacting Galleries
- wp_enqueue_script | Help me figure out what is causing jQuery is not defined
- Where is this JQuery coming from?
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Passing Jquery value to WordPress function
- Add loggedout class on body using a function or JS
- Are innerHTML elements visible to jQuery functions?
- get content from page through AJAX
- Creating multiple category drop down
- colorbox not loading in
- How to add php within jquery
- Show errormessages on wrong username/password on custom loginform?
- Problems with functions.php! Error! [closed]
- Help with IF has focus then… statment
- Looking for Functions File that doesn’t Exist
- Get URLs for AJAX Filter Checkboxes WordPress
- wp_set_object_term via js btn frontend
- functions.php pharse error on complete new install
- Ajax Form Issues using Lightsail (AWS)
- What is the earliest Hook a Script can use?
- WordPress does not load jQuery
- post value to function with Ajax and jQuery
- Images with overlay
- “Conditional query tags do not work before the query is run. Before > then, they always return false. “
- How to use `foreach()` in ajax call
- How To Display Author Popup on Entry Meta (Genesis Framework)?
- Multiple Notifications SetInterval
- How do i create a search option for pdf’s only
- WordPress Ajaxifying not working properly
- Execute jQuery with custom event listener after successfully add an item to the cart
- MCAPI.class.php showing some error
- Load scripts into an AJAX div
- True parameter but jquery register in header and not in the footer with wp_register_script
- Translation Function missing text-domain [closed]
- Automatic add space if user enters number(any digit)
- WordPress Jquery+scripts enqueue issue
- Moving CDN jQuery to footer does not work?
- Adding a jQuery rotator function
- What is wrong with functions.php? Fills error log with same error
- Random text changing to weird icons in both admin & front end
- How to use different jquery function of idangero swiper dependant on page template?
- create submenu page – error function not found or invalid function name
- Why does modifying my functions.php file always result in a server error
- Ajax call does not work for this custom code
- How do I get my nav menu to show sub pages?
- Having problems loading Jquery in functions.php
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Owl Carousel and WordPress Integration Via WP_Enqueue
- Woocommerce – Checkout error message
- AJAX values converted to PHP Variables?
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- Comment turned Invisible
- Animated Accordion [closed]
- Logout redirect via page template without confirmation?
- Convert Image to Webp on upload without plugin
- iOS and ajaxComplete
- Rewrite standard $errors messages output via function.php
- Output parent/child categories and posts in that parent/child hierarchy