[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
  • #1507120

    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

    Rajkumar SM

    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.

    A wise man once said:
    "Have you cleared your cache?"


    Hi Elvin,

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


    Customer Support

    Hi there,

    Can you make sure No Navigation is selected for the navigation location setting in the customizer?

    Let me know 🙂

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