- This topic has 7 replies, 2 voices, and was last updated 7 years, 10 months ago by
Tom.
-
AuthorPosts
-
May 23, 2018 at 6:05 pm #583101
Mohammed
Please help to solve the issue of getting Mobile and ubermenu showing in the same time on desktops and showing 2 mobile menus on mobile devices.
I have tried so many suggestions from the forum some of them removed the mobile menu from desktops but not from mobile devices.
I am looking forward to your help.
May 23, 2018 at 9:03 pm #583159Tom
Lead DeveloperLead DeveloperHi there,
Can you point me to the solutions you’ve tried? Just so I don’t try to get you to do the same thing over 🙂
May 24, 2018 at 2:48 pm #583972Mohammed
I have tried few I can’t remember which one I used. some of theme remove mobile menu from the desktop but still 2 menus in mobile devices one work the other only show nothing.
I appreciate your assistance in solving this issue. thanks Tom.
please have a look th site at
http://www.yourwp.co.ukMay 24, 2018 at 9:06 pm #584119Tom
Lead DeveloperLead DeveloperYou can remove the GP mobile menu like this:
#site-navigation button.menu-toggle { display: none; }I’m not sure why their mobile menu is displaying on desktop – have you checked with their support?
May 25, 2018 at 2:43 pm #584733Mohammed
Hi Tom Thanks for your time.I have copied the above to “Simple CSS” and is not working
Just for your attention. I have another site with GP theme and I am using Child theme is working perfect.
http://www.pcplanet.co
I just don’t know why is not working in my daughter’s site I am using
http://www.yourwp.co.uk
temporary before I can transfer it to her live one.Regards
MSMay 25, 2018 at 9:05 pm #584873Tom
Lead DeveloperLead DeveloperIt doesn’t look like the menu plugin is set up the same on the second site as it is on the first site. The second site is still using the GP navigation element, whereas the first site isn’t.
Have you done this?: https://generatepress.com/forums/topic/ubermenu-and-generatepress/#post-514355
May 26, 2018 at 3:49 pm #585357Mohammed
Hi Tom,
I copied this from the first site (GeneratePress Child: Theme Functions (functions.php) to the child theme (functions.php) in 2nd site./* Replace the theme’s menu with UberMenu */
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 );
}When I click on save the file I get this message:
(Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.)
May 26, 2018 at 9:35 pm #585437Tom
Lead DeveloperLead DeveloperDid you grab the function from here?: https://generatepress.com/forums/topic/ubermenu-and-generatepress/#post-514355
It’s a little different to what you have.
Let me know 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.