- This topic has 11 replies, 2 voices, and was last updated 8 years, 7 months ago by
Tom.
-
AuthorPosts
-
February 9, 2015 at 11:20 am #73706
webyogi
Hi,
We are facing an issue integrating UBERMENU with GENERATEPRESS theme.
The UBERMENU shows up fine using the Automatic Integration offered by UBERMENU but somehow there is a conflict with respect to mobile menu.
See -> http://go2immigration.com/ (WIP)
We also tried out Manual Integration using the code provided by you on the forum by including it in functions.php but WP generates both the UBERMENU and GENERATEPRESS menus.
Any help will be great.
Thanks
-RFebruary 9, 2015 at 11:35 am #73723Tom
Lead DeveloperLead DeveloperHi there,
Give this CSS a try:
@media screen and (max-width: 768px) { .menu-toggle, .main-navigation.toggled .main-nav > ul { display: none; } .main-navigation ul { display: block; } } @media screen and (min-width: 769px) { .ubermenu-responsive-toggle { display: none; } }
February 9, 2015 at 8:06 pm #73797webyogi
Hi Tom,
That was quick! Thanks.
We tried the CSS you gave us and that has fixed one part of the problem, being the UBERMENU now works as designed while in mobile mode. 🙂
But 2 issues remain:
1. The default menu title/header “Menu” continues to show up in mobile mode.
2. While in non mobile mode, UBERMENU shows the title/header for mobile mode – “Responsive UBERMENU”Appreciate all your help and the fast turnaround.
Thanks a lot in advance.
-R
February 9, 2015 at 11:59 pm #73834Tom
Lead DeveloperLead DeveloperTry this code instead:
@media screen and (max-width: 768px) { .menu-toggle, .main-navigation.toggled .main-nav > ul { display: none; } .main-navigation ul { display: block; } .ubermenu-responsive-toggle { display: block !important; } } @media screen and (min-width: 769px) { .ubermenu-responsive-toggle { display: none !important; } }
As for the “Responsive Ubermenu” text – that’s handled by the plugin I believe, so you’ll have to ask them how to change it.
Hope this helps 🙂
February 10, 2015 at 12:59 am #73851webyogi
Brilliant!!!
Thanks a ton.
Will be putting up a review about GeneratePress soon. Also we would like to get our website featured when it is all done.
BTW any plans of a Mega Menu Add-on?
Cheers!
RFebruary 10, 2015 at 4:50 pm #74089Tom
Lead DeveloperLead DeveloperYou’re welcome 🙂
No plans for that yet – there’s already some pretty good options out there that work.
Maybe one day though!
February 12, 2015 at 1:04 am #74332webyogi
Hi Tom,
Unfortunately there are some other display related problems with the UBERMENU which means the Automatic Integration provided by UBERMENU is not working too well with the GeneratePress theme inspite of all your help with the CSS code.
We are trying the manual integration way and stumbled upon the code on the support forum provided by you:
remove_filter( ‘wp_nav_menu_args’, ‘generate_wp_nav_menu_args’ );
remove_action( ‘generate_after_header’, ‘generate_add_navigation_after_header’, 5 );
add_action( ‘generate_after_header’ , ‘generate_ubermenu’ , 5 );
function generate_ubermenu()
{ ?>
<div class=”grid-container”>
<?php ubermenu( ‘main’ , array( ‘theme_location’ => ‘primary’ ) ); ?>
</div>
<?php
}Unfortunately the default menu does not get removed.
Any idea why?
Thanks again.
February 12, 2015 at 2:32 pm #74523Tom
Lead DeveloperLead DeveloperAre you sure the navigation is set to display after the header in the Customizer?
February 12, 2015 at 8:26 pm #74590webyogi
Hi,
Yes the navigation is set to display “Below Header”.
I have now changed the navigation position to “Above Header” under:
Appereance > Customize > Layout > Navigation Layout
and the functions.php to:
remove_filter( ‘wp_nav_menu_args’, ‘generate_wp_nav_menu_args’ );
remove_action( ‘generate_before_header’, ‘generate_add_navigation_before_header’, 5 );
remove_action( ‘generate_after_header’, ‘generate_add_navigation_after_header’, 5 );
add_action( ‘generate_after_header’ , ‘generate_ubermenu’ , 5 );As you can see the UBERMENU is getting displayed correctly now. Just the the default menu still remains which needs to be removed.
Thnx
February 13, 2015 at 12:36 am #74638Tom
Lead DeveloperLead DeveloperMaybe just set the Navigation Position to “No Navigation”?
If that doesn’t work, you can always try this:
.main-navigation { display: none; }
February 13, 2015 at 1:32 am #74650webyogi
Hey Tom!
That was a Master stroke from you!
I simply changed the navigation position to “No Navigation” under:
Appearance > Customize > Layout > Navigation Layout
and:
functions.php
add_action( ‘generate_after_header’ , ‘generate_ubermenu’ , 5 );
function generate_ubermenu()
{ ?>
<div class=”grid-container”>
<?php ubermenu( ‘main’ , array( ‘theme_location’ => ‘primary’ ) ); ?>
</div>
<?php
}All done.
Thanx.
February 13, 2015 at 11:05 am #74785Tom
Lead DeveloperLead DeveloperAwesome! Glad I could help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.