add a structural wrap

Community Forums Forums General Discussion add a structural wrap

This topic is: not resolved

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #75889

    babrees
    Participant

    Hi. I want to add a wrap around the primary and secondary navs.

    I have relocated both to above the header, added a width and floated one to left and one to right. I now want them both contained in a wrap so I can control both together. So it would be something like…

    <div class="nav-wrap"><div class="nav-primary"><div class="wrap">PRIMARY MENU</div></div><div class="nav-secondary"><div class="wrap">SECONDAY MENU</div></div></div>

    Here is my site: http://bulmer.tokrawebdesign.co.uk/

    I have looked at http://my.studiopress.com/snippets/structural-wraps/, but that doesn’t really help me how I add a wrap to contain primary and second menus.

    TIA
    Jill

    #76049

    babrees
    Participant

    Found another hack-a-round to do what I wanted :)

    #140979

    concept9
    Participant

    hi, i was wondering what was the hack-a-round that you found? Thanks!

    #140988

    Kellylise
    Participant
    #141019

    concept9
    Participant

    Thanks! I actually managed to get it working using this piece of code – i had tried the structural wraps and didn’t really work for me..

    //* Wrap .nav-primary in a custom div
    add_filter( 'genesis_do_nav', 'genesis_child_nav', 10, 3 );
    function genesis_child_nav($nav_output, $nav, $args) {
    
    	return '<div class="nav-primary-wrapper">' . $nav_output . '</div>';
    
    }
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.