follow mejoin mesubscribe

Control Genesis Theme Framework Structural Wraps

Controlling the structural wraps in the Genesis Theme Framework is actually just one line of code since Genesis 1.6.

/** Add support for section wraps **/
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );

So, why is this a cool little code snippet?  Adding and removing class=wrap inside of the #header, #nav, #subnav, #inner, #footer-widgets, and #footer divs just became much easier.  Very handy for me indeed since I add a div inside of inner quite frequently in my Genesis Child Theme designs.

You should add this anywhere after this line: require_once(TEMPLATEPATH.'/lib/init.php'); but before the final ?> tag at the end of the file.

About Jennifer Baumann

I am an avid horseback rider, animal lover, and freelance designer. I love working with WordPress and Genesis and work for Copyblogger Media as a Technical Support Advocate.

Dream Whisper Designs is Powered by Genesis

StudioPress Premium WordPress Themes

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.