Community Forums › Forums › Archived Forums › Design Tips and Tricks › Eleven40pro, moving secondary nav to Header area is killing me!
- This topic has 2 replies, 2 voices, and was last updated 9 years, 9 months ago by doktarZues.
-
AuthorPosts
-
June 29, 2014 at 12:34 pm #112002doktarZuesMember
Inside of eleven40pro, child theme functions.php I moved subnav from footer to 'genesis_after_header' :
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_after_header', 'genesis_do_subnav', 12 );After much struggle I "found" the subnav with chrome inspector buried behind the header at the top of the page. After many hours of struggling with stylesheet I'm convinced I've missed the boat on something key. The secondary nav isn't static respective to the header or the content which is a showstopper for my "grand design scheme" which consists of using primary OR secondary NAV as "Page" menu and then the other as "Category" menu. If these menus were (to be) static across all pages I would have went the long way and tweaked css manually as height of header or secondary nav grew. This fails my requirement because Page1 will have Cat1,3,5; Page2 will have Cat2,4,6,7,8,9,10 etc. (I am creating separate menus for each page, assigning relevant categories, then using genesis simple menu plugin within Page settings to assign respective secondary menu -- just FYI in case there's a much easier design method I'm pretty sure it's unrelated to my issue though.)
I wanted to be thorough in my description in case I'm asking the wrong question, but I *think* what I need to know is: how do I get my new secondary nav to sit still like the header??? Super duper bonus points if there's a way for it to "shove down" respective to header if the header height grows from expansion of primary nav (Pages), or for it to shove everything down starting with genesis_before_content_sidebar_wrap if the secondary grows (Categories that will vary per page).
I just whitepaged myself for 2nd time this morning which prompted me to come here, going to get it fixed here in a bit if looking at it will help. If you need any additional info let me know. If anyone is able to help this lost adventurer, even pointing in the right direction, I would greatly appreciate it.
June 29, 2014 at 11:11 pm #112068Davinder Singh KainthMemberwhat I understand you have moved secondary navigation to top area and now want it to be fixed just like black background header. If yes, then look for following code in style.css file
/* Secondary Navigation --------------------------------------------- */ .nav-secondary { margin-top: 10px; } .nav-secondary .genesis-nav-menu { line-height: 1.625 }
change it to following:
/* Secondary Navigation --------------------------------------------- */ .nav-secondary { margin-top: 10px; } .nav-secondary .genesis-nav-menu { line-height: 1.625 position: fixed; top: 0; width: 100%; z-index: 999; }
You may have to make finer adjustments in css for top and height values to get exact placement.
Sunshine PRO genesis theme
Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis ThemesJuly 2, 2014 at 9:31 pm #112758doktarZuesMemberSir, while I've since given up on the specific theme of eleven40pro, this is a
-
tremendously helpful
nugget of learning as I just tested some other mods I was working on that was similar (trying to get the menu fixed) and it worked! Thank you so much for your time and help it's much appreciated!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.