Forked from lmartins/filter-genesis-structural-wrap.php
Last active
August 29, 2015 14:11
-
-
Save webdev1001/8677a11ffdd23ea94c73 to your computer and use it in GitHub Desktop.
This file contains 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