Submenu not working after update + js error showing

Hi,

We recently updated to the latest version of the X theme. And the submenu’s from the main-menu are not showing when you hover over its parent menu item. -> the items are there. You can see them when you inspect the menu. And when the screen is small enough for the mobile menu, you can see the items show up in the mobile menu.

We have not build this website, but we do the updates for it every month, so we last updated it just prior of the WP v5 release.
So I don’t know exactly what version we came from, but not a very old one.

I don’t know, but I don’t think it it is related and I don’t know if it was there before, since all other things seem to work just fine.
But in the browser console there is a JS error:
13:05:19.713 TypeError: o.addTest is not a function[Learn More] x.js:1:4800
From this file: /wp-content/themes/x/framework/dist/js/site/x.js?ver=6.4.5

Hi @megabite,

Thanks for reaching out.

I can’t tell what’s causing that error at this moment. But it looks like related to Modernizr library and it’s not loaded (failing the call addTest()).

You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.