Archived topic
Move menu above new container
8 replies · Started by Chad Biggs on April 5, 2017
I've added a new container wrapper <div class="full-container grid-container grid-parent">. How can I move the secondary menu on top of the new container?
Thank you;
-Chad
Hi Chad,
Can you provide a link to your site so we can see where they are located right now?
Thanks!
Thank you for looking.
http://jadegarden.cboysweb.net/product
Try adding this function:
add_action( 'after_setup_theme','tu_move_secondary_nav' );
function tu_move_secondary_nav() {
remove_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 7 );
add_action( 'generate_before_header', 'generate_add_secondary_navigation_before_header', 1 );
}
I am trying to get the menu above the top border but that did not move the menu.
What hook did you add your top container HTML into?
You got me. I put it wp_head... I moved it to before head and now it is correct. Thank you!
You're welcome! :)