Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Filter Genesis Structural Wrap
//* 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
You can’t perform that action at this time.