Last active
August 29, 2015 14:25
-
-
Save kaynenh/e754241525e25ead4e79 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
// Pullquote with parameters | |
function pullquote( $title, $content = null ) { | |
extract(shortcode_atts(array( | |
'title' => 'title' | |
), $title)); | |
return "<div class'wrapper'><button>{$title}</button><h3>{$content}</h3></div>"; | |
} | |
add_shortcode('pullquote', 'pullquote'); | |
//Use in content with this | |
//Example: [pullquote title="Button Title"]Content of the h3[/pullquote] # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment