Author | Posts |
---|---|
1sourceweb
September 4, 2019 at 2:57 am
|
Heads up! this post was created when Microthemer was at version 5. The current version is 7. Some references to the interface may be out of date. I received the following error when I first attempted to start Microthemer. Uncaught TypeError: Cannot read property ‘hasClass’ of undefined (line 1) Error: Uncaught TypeError: Cannot read property ‘hasClass’ of undefined What does thins mean? |
vikasg1970
September 4, 2019 at 2:26 pm
|
Thanks for information. I was also getting this error. Now with the help of your information, I am able to resolve the issue. |
Sebastian
September 4, 2019 at 7:02 pm
|
It’s an old setting, from before Microthemer used :first-child and :last-child to target first and last menu items. It’s off by default nowadays. But I’ve kept it for legacy users. Unfortunately some themes haven’t updated in accordance with changes WordPress has made to the nav_menu_css_class action hook. And so they produce an error when this setting is enabled. It’s been years since the setting was on by default, so it could be time to retire it… Cheers, |