Skip to content

Instantly share code, notes, and snippets.

@calliaweb
Last active September 15, 2016 05:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save calliaweb/f74ce1bf2086b6f470a9 to your computer and use it in GitHub Desktop.
Save calliaweb/f74ce1bf2086b6f470a9 to your computer and use it in GitHub Desktop.
Filter Genesis Structural Wrap
<?php
//* Do NOT include the opening php tag
add_filter( "genesis_structural_wrap-footer-widgets", 'jmw_filter_footer_widgets_structural_wrap', 10, 2);
/**
* Filter the footer-widgets context of the genesis_structural_wrap to add a div before the closing wrap div.
*
* @param string $output The markup to be returned
* @param string $original_output Set to either 'open' or 'close'
*/
function jmw_filter_footer_widgets_structural_wrap( $output, $original_output ) {
if( 'close' == $original_output ) {
$output = '<div>Your text here</div>' . $output;
}
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment