0

I recently updated my wordpress since it has been awhile and now my submenus are not showing when I hover. I looked up and down for answers and pretty much come to a dead end. Can anyone help me find where the issue maybe at? The website is www.erickeitel.com

SubMenus

enter image description here

Coding

Manoj
  • 2,059
  • 3
  • 12
  • 24

2 Answers2

0

$.browser & jQuery.browser are deprecated. So, you have to upgrade your resources with the latest one.

If you want to continue with your existing code,

jQuery.browser = {};
(function () {
    jQuery.browser.msie = false;
    jQuery.browser.version = 0;
    if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) {
        jQuery.browser.msie = true;
        jQuery.browser.version = RegExp.$1;
    }
})();

Add this script with your script. @Credits

You can use the jQuery-migrate plugin too.

Dipak R
  • 166
  • 6
0

For WordPress specifically, you need this plugin https://wordpress.org/plugins/enable-jquery-migrate-helper/

This is not a fix, but a work around, as WordPress 5.5 removed jQuery migrate from core.

I would personally just remove that code from your theme, as support for older versions of IE is probably not worth the effort.

Howard E
  • 5,454
  • 3
  • 15
  • 24