• Resolved mapplesheep

    (@mapplesheep)


    Hi everybody !

    I’ve been looking for a few day how to remove the main menu (the one in the header bar).

    I didn’t find the file nor the code that is responsible for that menu, I don’t even know if it’s possible to remove it properly…

    Could somebody give me a clue (or the full procedure :-D) ?

    Alex, https://sitecredis.olympe.in/wordpress

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there!

    Our theme documentation explains the options for altering the header via the theme Customizer. Take a look through those docs and experiment with the Customizer to see if you can make the changes that you need.

    Thread Starter mapplesheep

    (@mapplesheep)

    Thanks Zack,

    I already know for the customisator, I use it but there isn’t any option to toogle this bar.

    Any other tips ?

    I don’t see an option to totally disable it either, but perhaps we’re missing it?

    One way to do it is in your child theme, create a folder called ‘partials’, then copy these files from the Make theme in to your theme:

    partials/header-layout.php
    partials/header-layout-3.php

    Then remove (or comment out) the navigation menu:

    <nav id="site-navigation" class="site-navigation" role="navigation">
    				<span class="menu-toggle"><?php echo esc_html( $menu_label ); ?></span>
    				<a class="skip-link screen-reader-text" href="#site-content"><?php _e( 'Skip to content', 'make' ); ?></a>
    				<?php
    				wp_nav_menu( array(
    					'theme_location' => 'primary'
    				) );
    				?>
    			</nav>
    Thread Starter mapplesheep

    (@mapplesheep)

    Hi PinkishHue,

    I barely tried every option of the customizer… I don’t think it has the possibility to disable the menu.

    Your solution seems interesting.
    I made a save on my host, created the folder, copied the 2 files, copy/past the code in place of the existing <nav></nav> in thoses two files. Nothing happened.

    I then directly made the change on my originals folder, (not sure my child theme is working) : nothing happened.

    Did I made something wrong, or do somebody know what to do ?

    You want to remove that code for the nav menu in the child theme versions of those files. That should work.

    Thread Starter mapplesheep

    (@mapplesheep)

    It work ! Thanks a lot. ??

    Anonymous User 9936702

    (@anonymized-9936702)

    Great! Thanks for helping out, PinkishHue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How do I remove top menu’ is closed to new replies.