Shortcodes

Shortcodes

A shortcode is a [bracketed] code that lets you do nifty things with very little effort. Shortcodes can create beautiful graphics or embed files that would normally require lots of complicated, ugly code in just one line. Shortcode = shortcut. Insert a shortcode via the "   Add Shortcode" button above your content editor. Fill in the relevant content, use "preview" to view the shortcode before finalizing it, then click "insert shortcode." In the text editor, it will look something like this:

[wagnerbutton size="medium" color="#004331" target="_blank" url="http://wagner.edu/communications" icon="ok" ]This is a button.[/wagnerbutton]

In the example above, anything in bold can be edited. After you publish the page or post, that same shortcode will magically turn into this:

This is a button.

If you need to edit the content, you can go through all the steps again, or you can simply edit the text within the brackets. Keep in mind that some formatting (especially headers) will break the shortcode. That's because we've already added formatting, and your formatting is in conflict with that. Try using "paragraph" text instead.