Community Forums › Forums › Archived Forums › Design Tips and Tricks › Reposition Primary Navigation Menu – Agency Pro
Tagged: agency pro, reposition, Reposition Menu, responsive menu
- This topic has 4 replies, 2 voices, and was last updated 9 years, 9 months ago by Brad Dalton.
-
AuthorPosts
-
July 8, 2014 at 1:02 am #113334PatinaMember
I hope this is the correct lingo...
Can anyone help me or advise me on how to move the primary-navigation (nav-primary) menu and repositioning it directly under the header? (This would be directly above and NOT within the site container.) (I would also like some suggestions on adding a responsive menu to this theme AFTER the navigation menu is fixed. So, if you have any suggestions please let me know.)
I would like the theme to be structured like this:
<header class="site-header"> __</header>
<div class="nav-primary" __</div>
<div class="site-container" __</div>
<div id="home-top" __</div>
<div class="site-inner" __</div>
<div class="footer-widgets" __</div>
<footer class="site-footer" __</div>
</div>Currently the nav-primary is within the site-container and to keep the menu in place you have to add padding-top to the nav-primary to keep it from disappearing behind the header as the device width changes. It's a real pain to keep fixing the padding and I don't see how anyone would want to work with this issue and I want to fix it...
http://dev.patinamarketing.com/patinamarketing/t
<header class="site-header"> __</header>
<div class="site-container" [div is missing here]
<nav class="nav-primary – to also include a responsive mene - __</nav>
<div id="home-top" __</div>
<div class="site-inner" __</div>
<div class="footer-widgets" __</div>
<footer class="site-footer" __</div>
</div>July 8, 2014 at 7:58 am #113390Brad DaltonParticipantJuly 8, 2014 at 9:07 am #113407PatinaMemberHi,
Adding the code below to the function.php code creates two nav-primary menus in the site-container. It does not remove the nav-primary from the site-container or place the nav-primary above the site-container, which is what I need to do.
see: website
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );July 8, 2014 at 9:27 am #113411PatinaMemberI've tried the code above in a custom-functions.php file and the child themes function.php file.
If added to the custom-functions.php file two navigation menus appear in the site-container.
If added to the function.php file nothing changes.The menu remains in the site-container.
July 8, 2014 at 10:01 am #113418Brad DaltonParticipantYou may need to change the hook positions in the code as its an example of how to re-position the menu.
Please close this post as its a duplicate http://www.studiopress.community/topic/reposition-primary-navigation-menu-agency-pro-2/
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.