• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

add a structural wrap

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › add a structural wrap

This topic is: not resolved

Tagged: add structural wrap, add wrap

  • This topic has 4 replies, 3 voices, and was last updated 11 years, 3 months ago by concept9.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 27, 2013 at 10:21 am #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

    November 28, 2013 at 10:44 am #76049
    babrees
    Participant

    Found another hack-a-round to do what I wanted 🙂

    February 15, 2015 at 9:57 pm #140979
    concept9
    Member

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

    February 16, 2015 at 12:13 am #140988
    DTHkelly
    Member

    Some reference:
    http://www.carriedils.com/customize-genesis-move-header/

    February 16, 2015 at 9:23 am #141019
    concept9
    Member

    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>';
    
    }
  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble