[Support request] How to get rid of primary menu

Home Forums Support [Support request] How to get rid of primary menu

Home Forums Support How to get rid of primary menu

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1507120
    rajkumarsm

    Hi, I have an issue with the menu.

    I have created a mega menu using the ElementorsKit plugin. Everything is fine but on the mobile, still, the primary menu is loading.

    I tried to unselect all the locations in ‘View Locations’ but no luck.

    Could you please guide me on how to get rid of this.

    My site: Software Testing Material

    Thanks,
    Rajkumar SM

    #1507175
    Elvin
    Staff
    Customer Support

    You can try adding this PHP snippet.

    add_action( 'after_setup_theme','tu_remove_all_header' );
    function tu_remove_all_header() {
        remove_action( 'generate_header','generate_construct_header' );
        remove_action( 'generate_after_header', 'generate_menu_plus_mobile_header', 5 );
    }

    Here’s how to add PHP – https://docs.generatepress.com/article/adding-php/

    This snippet completely removes the header & nav on desktop view and the mobile header.

    #1511761
    rajkumarsm

    Hi Elvin,

    I tried it but no luck. Have added the code in the child theme functions file.

    Thanks

    #1511845
    Leo
    Staff
    Customer Support

    Hi there,

    Can you make sure No Navigation is selected for the navigation location setting in the customizer?
    https://docs.generatepress.com/article/navigation-location/

    Let me know 🙂

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