Created
May 27, 2015 20:32
-
-
Save musicalbigfoot/7ec04f6c3eb12c8a029b to your computer and use it in GitHub Desktop.
clearfix shortcode - wordpress functions
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
function clearfix_shortcode( $atts, $content = null ) { | |
extract( shortcode_atts( | |
array( | |
'' => '', | |
), $atts ) | |
); | |
$result = '<div class="clear"></div>'; | |
return $result; | |
} | |
add_shortcode( 'clear', 'clearfix_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment