Archived topic
Menu problems due to update
5 replies · Started by Clay Montgomery on May 10, 2018
I recently updated to the latest version of GP (2.1.1 and 1.6.2 Premium) and it is causing problems with my menus. On mobile devices, the menu at the top is no longer functional. It just toggles between the hamburger and X symbols. The menu is at the bottom also on mobile and desktop. That menu works, but I don't want the menu at the bottom and I can't seem to disable it without disabling menus completely. I have Menu Plus enabled but not Secondary Nav.
I would really appreciate some help on this. My site is:
Thanks, Clay
Hi Clay,
You seem to have a plugin which is moving the scripts up above the actual slideout navigation element. I know that NextGen Gallery does this (for some reason), but other plugins might as well.
You can find a fix here: https://generatepress.com/forums/topic/problem-with-slide-menu-after-update/#post-536764
Tom,
Thanks! I confirmed that disabling NextGen does indeed fix the menus. I see I need to insert this code to make NextGen work again:
add_action( 'after_setup_theme', 'tu_fix_nextgen_issues' );
function tu_fix_nextgen_issues() {
remove_action( 'wp_footer', 'generate_slideout_navigation', 0 );
add_action( 'generate_before_footer', 'generate_slideout_navigation' );
}
I could use a few pointers on where to insert this code.
Thanks, Clay
It can be added using one of these methods: https://docs.generatepress.com/article/adding-php/
I have no idea why NextGen does this, but we're working on a "fix" in the plugin itself to prevent it.
That fixed the problem.
Thanks Tom!
You're welcome! :)