Skip to content

Instantly share code, notes, and snippets.

@kaynenh
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaynenh/e754241525e25ead4e79 to your computer and use it in GitHub Desktop.
Save kaynenh/e754241525e25ead4e79 to your computer and use it in GitHub Desktop.
// 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