Eleven40pro, moving secondary nav to Header area is killing me!

Community Forums Forums Design Tips and Tricks Eleven40pro, moving secondary nav to Header area is killing me!

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  doktarZues 3 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #112002

    doktarZues
    Member
    Post count: 1

    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.

    #112068

    Davinder Singh Kainth
    Participant
    Post count: 1291

    what 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.


    Need website customization services or other Genesis / WordPress help ?
    Davinder @ Design Studio iGuiding Media | My Blog | Fresh Genesis Themes Collection

    #112758

    doktarZues
    Member
    Post count: 1

    Sir, 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!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.