Last active
September 15, 2016 05:51
-
-
Save calliaweb/f74ce1bf2086b6f470a9 to your computer and use it in GitHub Desktop.
Filter Genesis Structural Wrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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