Welcome! To use this support forum, please Login or Join Today!

   

Swapping Naviation/header?

{name}
RankRank

Total Posts: 45

Joined 2013-06-24

PM

 

Greetings all,

Just looking how to swap the header/naviation positions. 

http://asiafinance.co.nz/

Seems it is just a wee bit more than ‘nav menu location: top’ type of edit :)

{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 

You should be able to swap them out in your child theme functions.php with the following:

function st_main_nav() {
 echo '<div id="menu" class="wide">';
 echo '<div class="container">';
 echo '<div class="sixteen columns">';
 wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'menu_id' => 'nav'));
 echo '</div><!--/.columns row-->';
 echo '</div><!--/.container-->';
 echo '</div><!--/#menu-->';
 echo '<div class="clear"></div>';
}
// remove menu from previous location
remove_action( 'st_navbar', 'st_main_nav', 1);
// add menu before header
add_action('st_header','st_main_nav', 1);

http://hastebin.com/hapawuwoqe.php

 

{name}
RankRank

Total Posts: 45

Joined 2013-06-24

PM

 

Absolutely awesome Casey!  Thank you!