Change Menu and Slider - move WordPress menu below slider

Hi, how can i change the position of menu and slider so that the menu is above the slider?

Below the slider of course!

Here is how you can move menu bar below slider.

Inside header-extensions.php file you should remove this part of code:

<?php
		if ( has_nav_menu( 'primary' ) ) {
			$args = array(
				'theme_location'    => 'primary',
				'container'         => '',
				'items_wrap'        => '<ul class="root">%3$s</ul>'
			);
			echo '<nav id="main-nav" class="clearfix">
					<div class="container clearfix">';
				wp_nav_menu( $args );
			echo '</div><!-- .container -->
					</nav><!-- #main-nav -->';
		}
		else {
			echo '<nav id="main-nav" class="clearfix">
					<div class="container clearfix">';
				wp_page_menu( array( 'menu_class'  => 'root' ) );
			echo '</div><!-- .container -->
					</nav><!-- #main-nav -->';
		}
	?>

File header-extensions.php can be found on travelify folder - library - structure.

Now there won’t be any menu at all. So now you have to move it below slider. For that you have to add this code inside the same 20 lines below the place from which we removed above mentioned code.

				if ( has_nav_menu( 'primary' ) ) {
			$args = array(
				'theme_location'    => 'primary',
				'container'         => '',
				'items_wrap'        => '<ul class="root">%3$s</ul>'
			);
			echo '<nav id="main-nav" class="clearfix">
					<div class="container clearfix">';
				wp_nav_menu( $args );
			echo '</div><!-- .container -->
					</nav><!-- #main-nav -->';
		}
		else {
			echo '<nav id="main-nav" class="clearfix">
					<div class="container clearfix">';
				wp_page_menu( array( 'menu_class'  => 'root' ) );
			echo '</div><!-- .container -->
					</nav><!-- #main-nav -->';
		}
}

This code should be added right after second and before third closing curly bracket. Here is an example what you should look for:

	   <?php
	   	}
		}
}

Let me know if this is what you were looking for.

I just get syntax error. Please find my file here:

www.istdochallesnursport.de/wp-content/themes/travelify/library/structure/header-extensions.zip

Remove one curly bracket at the end of that code you added and you should be good to go.

perfect! Thank you very much

Hello everyone,

is there a way to achieve this - that the menu is positioned below the slider - in a child theme?

Thank you and best regards!

@navobel

This thread is marked as resolved.

Please start you own thread and preferably add this thread as reference.

Sorry for inconvenience.