Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using retro hipster theme and have been able to add secondary menu with details. I've read regarding adding array in functions.php and then calling both nav in the header.php.

However one menu is displayed vertically above primary menu and other header details. How do I get it where I want it - which is secondary menu above the header and vertical and static - it is shopping cart menu for woocommerce. I want it sticky so always viewed.

Also I assume that CSS is needed to be added for the secondary menu?

functions.php

register_nav_menus( array(
  'primary' => __( 'Primary Menu', 'mytheme' ), <br>
  'secondary' => __( 'Secondary Menu', 'mytheme' ),<br>
) );

In the header.php -- is it added in a specific location?

<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
<?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?>
share|improve this question
    
Those <br>s should not be there. But as wp_nav_menu() actually prints out the menu and you list the two calls taking place immediately one after the other, the actual positioning of the menus in this instance would seem to be strictly a matter of styling, and thus the solution is simple: alter your CSS to display the menus as you see fit. As this question appears to generally regard positioning arbitrary HTML elements using arbitrary CSS (rather than regarding WordPress' functionality or packaged assets), this question may be considered "off-topic" for the WordPress Development community. –  boscho May 29 at 19:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.