• Resolved Gal Baras

    (@galbaras)


    I have a very short menu, which I want to keep on mobile phones as is, other than some restyling. However, the minimum width for the mobile menu is 480px and I can’t see how this feature can be completely disabled, i.e. not even include it on the page and reduce page loading time.

    Please advise.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author CyberChimps

    (@cyberchimps)

    Hey @galbaras we are planning to update the breakpoint for the mobile menu in upcoming versions. We will update you once it is updated.

    Can you please clarify the second sentence, do you want to hide the menu from all devices?

    [ Signature deleted ]

    • This reply was modified 4 years, 3 months ago by Jan Dembowski.
    Thread Starter Gal Baras

    (@galbaras)

    Yes, I want to have the desktop menu on every device. I’ve been able to achieve this with a theme_mod_responsive_mobile_header_breakpoint filter (set the break to 1), and the menu doesn’t change.

    However, the code and styling for the mobile menu are loaded along with the theme’s scripts and styles regardless, and that’s wasteful.

    If will be good to be able to completely disable this feature and prevent the respective scripts and styles from loading, because that’s good for performance.

    Theme Author CyberChimps

    (@cyberchimps)

    Thanks for your feedback @galbaras
    Forwarding this to feedback to our dev team.

    Regards,
    CyberChimps Team

    @galbaras,
    Hi there,
    Good job getting this sorted, may I ask how to implement the ‘theme_mod_responsive_mobile_header_breakpoint filter’ please?
    It’s not something I’ve seen before.

    Thanks for you your help!

    @cyberchimps,
    +1 for having the option to disable the mobile menu function.
    I use the WP Mobile Menu plugin as it allows me to have menus on one side and the woocommerce cart on the other.
    Making the additional code for the theme mobile menu unnecessary.

    Appreciate all the work you guys have putting in lately, theme is awesome, and continuing to get even better 🙂

    Thread Starter Gal Baras

    (@galbaras)

    
    add_filter( 'theme_mod_responsive_mobile_header_breakpoint', 'custom_responsive_mobile_header_breakpoint' );
    function custom_responsive_mobile_header_breakpoint( $break_point ) {
    	return 1;
    }
    
    Theme Author CyberChimps

    (@cyberchimps)

    @galbaras @japenz

    Thanks for the suggestion. We will consider this in a future release.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to disable mobile menu completely?’ is closed to new replies.