Im on WordPress engine latest version. The site maxg5.ru The console appeared errors in the file priority-menu.js. Because of this error in the mobile version, menu items are displayed in the wrong order as specified in the admin panel. I think this happened after I deleted the line 228 in wp-content\themes\twentynineteen\inc\template-functions.php:

add_filter( 'wp_nav_menu', 'twentynineteen_add_ellipses_to_nav', 10, 2 );

It was necessary to do this to disable this filter in the mobile version and impose a mobile menu as I need. How do you fix errors in the priority-menu.js file? Or maybe it was necessary to disable the filter somehow?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.