- This topic has 8 replies, 3 voices, and was last updated 3 years, 12 months ago by
Tom.
-
AuthorPosts
-
June 13, 2019 at 6:39 am #928328
Sam
Hi, I have followed the link provided by Tom in an old thread regarding the integration by sevenspark, but it breaks the header, could their code be out of date?
if ( !function_exists( ‘generate_navigation_position’ ) ) {
function generate_navigation_position(){
if( function_exists( ‘ubermenu’ ) ){
ubermenu( ‘main’ , array( ‘theme_location’ => ‘primary’ ) );
}
}
}/* Stop the theme from filtering the menu output */
add_action( ‘wp_head’ , ‘stop_generatepress_menu_filter’ );
function stop_generatepress_menu_filter(){
remove_filter( ‘walker_nav_menu_start_el’, ‘generate_nav_dropdown’, 10, 4 );
}See here screen shot: https://www.dropbox.com/s/8idud4kldk5rx3f/Screenshot%202019-06-13%20at%2013.08.09.png?dl=0
Let me know if you have any ideas?
thanks
SamJune 13, 2019 at 6:40 am #928329Sam
Sorry, I do not have a link as I am on a Mamp local development.
June 13, 2019 at 6:45 am #928339David
StaffCustomer SupportWhich location have you set the primary navigation to in the customizer?
June 13, 2019 at 7:12 am #928500Sam
Hi David, Main menu is set as Primary Navigation:
https://www.dropbox.com/s/os7u1ig7b221xe3/Screenshot%202019-06-13%20at%2016.11.45.png?dl=0
https://www.dropbox.com/s/m7api6dybiqhf37/Screenshot%202019-06-13%20at%2016.11.55.png?dl=0June 13, 2019 at 2:39 pm #928905Tom
Lead DeveloperLead DeveloperIs the search icon the only broken part? It’s hard to tell what’s going on without seeing the actual site, unfortunately.
June 13, 2019 at 11:53 pm #929160Sam
Hi Tom, yes sorry I am working on setting up a staging site but our live site is pretty large so it is not so easy… 30gb total (medium sized ecomm site with lots of media and large db).
Regarding the menu with Ubermenu pretty much all of it is broken, the menu location (should be on the right and everything just on one line) but is on the left and down a but, the search does not open the search field and is on the left under the displaced menu and the cart seems to open the mini cart but is displaced and the icon is missing.
Here is a screen shot without ubermenu snippet active: https://www.dropbox.com/s/oq10b2z4yeaw7po/Screenshot%202019-06-14%20at%2008.48.06.png?dl=0
This menu is one of the last things to fix and then I can go live and debugs will be easier.
I am only using the ubermenu because the method in your mega menu article using css seems to only work on the stick nav and not on the regular menu bar. Maybe if I can work that I can forget this ubermenu all together : (
Thanks
SamJune 14, 2019 at 8:45 am #929729Tom
Lead DeveloperLead DeveloperOur mega menu option should work with the regular menu as well as the sticky menu. What about it isn’t working on your regular menu?
Let me know ๐
June 14, 2019 at 8:57 am #929741Sam
Hi Tom, please see this thread on that topic: https://generatepress.com/forums/topic/mega-menu-issue-2/#post-929671
thanks
SamJune 14, 2019 at 9:29 am #929768Tom
Lead DeveloperLead DeveloperAnswered: https://generatepress.com/forums/topic/mega-menu-issue-2/#post-929767
Let me know ๐
-
AuthorPosts
- You must be logged in to reply to this topic.