Hi all,
Since support is apparently not interested in helping, I’d like to let you know what I’ve done to resolve this.
I have tried dequeueing and deregistering the navigation scripts to instead place them in the header, since it is loaded in the footer. That did not work.
I have tried combining the navigation scripts with scripts that load first. That did not work.
I tried replacing the menu entirely with Max Mega Menu. That did not work as it was loading last still!
I ultimately found that there is something between CSS and/or JS with these classes:
<div class="header-navigation">
and
<div class="navigation-wrapper clear">
When I removed these, the navigation loaded immediately, albeit much of the mobile/responsive toggle functionality was gone as it is reliant upon the CSS classes to call the JS.
So ultimately what I ended up doing was replacing the navigation in my child theme’s header.php entirely with this code instead:
<nav class="primary-navigation" role="navigation">
<?php
wp_nav_menu( array(
'theme_location' => 'primary',
'container_class' => 'menu-primary',
'menu_class' => 'clear',
) );
?>
</nav>
Then I re-enabled the Max Mega Menu plugin (or your menu plugin of your choice) and restyled it. Now I have a functional, not loaded last menu.
Edit: If you do what I did, you might as well dequeue and deregister the navigation script. No use loading additional scripts for no reason:
function dequeue_edin_nav(){
wp_dequeue_script('edin-navigation');
wp_deregister_script('edin-navigation');
}
add_action('wp_print_scripts','dequeue_edin_nav');
-
This reply was modified 5 years, 8 months ago by the9mm.
-
This reply was modified 5 years, 8 months ago by the9mm.