Archived topic
NextGen results in primary menu lood in after footer
6 replies · Started by Jokr on March 27, 2018
Hi Tom,
unluckily I'm facing a new issue with NextGen after updating GP Premium.
The primary menu will be shown additionally after footer. If I deactivate NextGen it is displayed correctly.
Do you have a workaround like for the bottom-up-button?
jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1
offside.min.js?ver=1.6:1 Uncaught TypeError: Cannot read property 'classList' of undefined
at a (offside.min.js?ver=1.6:1)
at new i (offside.min.js?ver=1.6:1)
at s (offside.min.js?ver=1.6:1)
at Object.getOffsideInstance (offside.min.js?ver=1.6:1)
at getInstance (offside.min.js?ver=1.6:1)
at offside.min.js?ver=1.6:1
a @ offside.min.js?ver=1.6:1
i @ offside.min.js?ver=1.6:1
s @ offside.min.js?ver=1.6:1
getOffsideInstance @ offside.min.js?ver=1.6:1
getInstance @ offside.min.js?ver=1.6:1
(anonymous) @ offside.min.js?ver=1.6:1
Kind regards
Jo
Hi there,
NextGen has some sort of weird issue with HTML being hooked into wp_footer. I'm not sure what they're doing on their end.
You can try to fix it with this PHP:
add_action( 'after_setup_theme', 'tu_move_slideout_navigation' );
function tu_move_slideout_navigation() {
remove_action( 'wp_footer', 'generate_slideout_navigation', 0 );
add_action( 'generate_before_footer', 'generate_slideout_navigation' );
}
Hi @Tom,
thanks a lot for the fast response. It resoved two issues :-)
The one of https://generatepress.com/forums/topic/slide-out-menu-not-showing-sub-menu/#post-533039 is fixed as well.
Many thanks again - have a nice day
Jo
Awesome, glad I could help! :)
Tom said:
NextGen has some sort of weird issue...You can try to fix it with this PHP
That's for sure, and y'all have an answer for everything!
Thanks for the good help.
Glad it helped :)
Never cease to amaze me. The PHP fixed the issue. I Will save this fix in my notes.
As always very grateful for your assistance and product.