Lego2012
12/14/2016 - 2:49 PM

Add Structural Wraps

Add Structural Wraps

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

<!-- By default, Genesis adds structural wraps inside the header, menu-primary, menu-secondary, footer-widgets, and footer elements to aid styling. Use the code below to add additional structural wraps or remove default ones. -->

<!-- Add new structural wraps by adding the named element you wish to insert wrap tags into, such as ‘site-inner’. -->

<!-- Remove default wraps by removing the named element that should no longer contain the wrap. -->

//* 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 at once, use this code: -->

//* Remove support for structural wraps
remove_theme_support( 'genesis-structural-wraps' );