According to this article:
“hover” pseudo-event
As of 1.9, the event name string “hover” is no longer supported as a
synonym for “mouseenter mouseleave”. This allows applications to
attach and trigger a custom “hover” event. Changing existing code is a
simple find/replace, and the “hover” pseudo-event is also supported in
the jQuery Migrate plugin to simplify migration.
If you need to continue using hover()
you may use the Migrate plugin.
Change your function to:
function RegisterJQuery()
{
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', false, "1.9.1" );
wp_enqueue_script( 'jquery' );
wp_register_script( 'migrate', 'http://code.jquery.com/jquery-migrate-1.1.1.min.js');
wp_enqueue_script( 'migrate' );
}
Related Posts:
- ‘Bones’ theme: Load stock scripts in footer instead of header?
- How can I print out a single stylesheet or javascript link?
- WordPress generating Undefined Variable warning
- WordPress Theme variables scope
- esc_attr() right way and use
- Get only enqueued styles and scripts of the current theme
- why is translation not working on theme?
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Custom Theme’s “Preview Changes” Doesn’t Work for Previously Published Posts
- WordPress Scripts Being Loaded in Footer
- How do I link a button I created in theme customizer to a function?
- 404 error when I acess the second page of post-type
- How to change theme programmatically from a external application?
- Jquery function working in Dev Console but not otherwise [duplicate]
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Does wordpress templates always in files or in database?
- proper way to add css using functions.php?
- jQuery code not working when included in functions.php
- What does this mean in wordpress? Easy question
- Conditional Javascript based on WP Version
- Is the wp_enqueue method efficient?
- Showing latest post without 301 redirect
- Translate wordpress date from Italian to English
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- Correct way to enqueue page specific CSS file
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- Separation of presentation and code – WordPress
- WordPress Customizer Default Image
- linking stylesheets and scripts with functions.php
- Double jQuery loaded
- Do I have anything to worry about when switching to a default theme to test for plugin conflictions?
- Why in my theme I can’t see all the statics content under the posts?
- get_template_directory adding FTP root folders in urls
- How to integrate noimage picture in this code
- Need oop for wordpress theme? [duplicate]
- How to add the sidebar to all the pages except the home page? [closed]
- Header not properly displaying on archive.php
- Save Custom CSS file in the upload folder dynamically?
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- Warning: printf(): Too few arguments in helpers.php file
- Design with Elementor and code the rest?
- How to use wordpress function wp_enqueue_script() in php?
- Enqueing External JS on the remote server JS
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- Trying to enqueue script – Nothing Happens
- WordPress and PHP Version Upgrade issue [closed]
- home.php show blog posts as grid view
- blank white page when post/update/change option etc
- How to Update an old theme for the latest wordpress version
- get_comments_number() returns 0
- url_to_postid returns 0
- Fatal errors to undefined function in theme 404.php file [closed]
- Problems clearing cache
- Amend theme php to include certain category in header
- Override index with a custom PHP page
- Implementing custom tag/tax pages
- Randomize Color Scheme Selection in Theme
- Accidentally deleted php code in WordPress website [closed]
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Enqueueing a code block from an options framework
- Why in this WordPress theme I can’t see the Main Menu?
- Displaying Slider in Front Page (home) using Customizr Theme
- How can I assign separate stylesheets to different pages?
- How to make sure relative URL works when site is not on root domain?
- Editing Theme Files on WordPress.com-hosted Site [closed]
- call a string/function from database
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- Commas in Tag Cloud
- Is there a (offical) way for a theme to deactivate itself and show a message in admin?
- Wrap title and excerpt in a div (latest posts block)
- how to get wordpress page url php code [duplicate]
- WordPress redirects page query parameter in URL
- How to set all External Domain Links with nofollow Attribute from Header Footer Content and Excerpt using PHP?
- Publish button now showing content after saving
- How to put search bar & logo in the “primary navigation” storefront theme?
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- error_log PHP error log found. This file must not be in the production version of the theme. (wordpress theme check plugin)
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- How do I use an iFrame for my header in WordPress twenty seventeen?
- Styling a category link
- Not able to remove caption shortcode from the content
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- remove_action from parent theme using child theme functions.php
- Using Google Analytics in an enqueued JS file
- File from parent theme imported to child theme doesn’t work – any ideas?
- How to use data URL in WordPress?
- Commenting requires wordpress login, wordpress discussion and post comments tick boxes are checked
- wordpress email checker on domain
- Unable to retrieve get_author_posts_url
- Display post date also if the date it’s the same for each post
- Enqueue assets from multiple directories using add_action/do_action
- Conditional Banners
- Force Sidebar on Full Width page
- The style.php file inside theme-engine folder has other content on FTP
- How to change order inside foreach using wp_enqueue_script?
- Call a single function on two different methods with hooks
- How to override theme’s public static function inside of a trait?
- Invalid Argument foreach