Skip to content

Instantly share code, notes, and snippets.

@waltermesser
Last active October 28, 2016 02:33
Show Gist options
  • Save waltermesser/6ac64d82071d64c371e64ca80d72b8c1 to your computer and use it in GitHub Desktop.
Save waltermesser/6ac64d82071d64c371e64ca80d72b8c1 to your computer and use it in GitHub Desktop.
// Create a trigger from standard text.
[popup_trigger id="123"]Plain text trigger[/popup_trigger]
// Make the trigger a <button>.
[popup_trigger id="123" tag="button"]Button Text[/popup_trigger]
// Or even use other shortcodes.
[popup_trigger id="123"][button_shortcode][/popup_trigger]
// Using a button tag with the extra css style I had laying around.
[popup_trigger id="123" tag="button" classes="button-class"]Sign Up for Our Newsletter[/popup_trigger]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment