Add Structural Wraps

Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.

Genesis includes structural wraps within the header, menu-primary, menu-secondary, footer-widgets, and footer elements by default to facilitate styling. Utilize the following code to modify or remove these default structural wraps:

To insert wrap tags into additional elements, such as ‘site-inner’, simply add the element’s name.

To eliminate wrap tags from default elements, remove the corresponding element’s name.

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
 
//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
    'header',
    'menu-primary',
    'menu-secondary',
    'site-inner',
    'footer-widgets',
    'footer'
) );

To remove support for all structural wraps simultaneously, employ the following code:

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
 
//* Remove support for structural wraps
remove_theme_support( 'genesis-structural-wraps' );
What are your feelings