The What
Syntax
string genesis_structural_wrap ( string $context= '', string $output= 'open', bool $echo = true );
Located in genesis/functions/layout.php.
Description
This function renders (output) out to the browser either the opening <div class="wrap"> or closing </div> HTML, when the context is enabled in the child theme via add_theme_support. For example, you can apply the structural wrap HTML to the the following components:
| add_theme_support( 'genesis-structural-wraps', array( | |
| 'header', | |
| 'nav', | |
| 'subnav', | |
| 'footer-widgets', | |
| 'footer', | |
| ) ); |
This function is located in the genesis/lib/functions/layout.php file.
Parameters
context- optional The specific location component, e.g. header, nav, footer, etc. The default is an empty string.
output- optional Selects either the “open” or “close” HTML structure. The default is “open.”
echo- optional When set to
false, the HTML is returned to the calling code; else it is rendered out to the browser. The default istrue
Return Values
If the context is enabled, then it returns either the opening or closing HTML; else it returns either NULL or an empty string.
Don’t repeat yourself. Don’t repeat yourself. Don’t repeat yourself.
More coming soon…keep checking back.
