Site logo

[Resolved] add mobile menu not working

Home Forums Support [Resolved] add mobile menu not working

Home Forums Support add mobile menu not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2452009
    sparkle

    i added this information to my function file:

    add_action( 'init', function() {
          register_nav_menu( 'mobile-menu', __( 'Mobile Menu' ) );
      } );
      
      add_filter( 'generate_mobile_header_theme_location', function() {
          return 'mobile-menu';
      } );

    and created a menu called Mobile with my items and marked the box, but just the primary nav for the desktop site remains visible….

    i followed this article…. what did i do wrong? https://docs.generatepress.com/article/using-a-different-menu-on-mobile/

    #2452247
    Fernando
    Customer Support

    Hi Sparkle,

    To clarify, have you turned on Mobile Header in Appearance > Customize > Layout > Header?

    #2452250
    sparkle

    THAT was the missing link. now i see the right header on mobile. thank you.

    #2452257
    Fernando
    Customer Support

    You’re welcome, Sparkle!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.