Useful Shortcodes

Shortcodes allow you to insert simple snippets of plain text to achieve useful functions in your WordPress theme. Element provides many useful shortcode functions to help you easily insert beautifully styled buttons, layout columns, tabbed content, accordion toggles, sliders, post lists, and more.

Easy Toggles

View Shortcode

Button text One

Toggle Content One.

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

Button Text Two

Toggle Content Two

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

Button Text Three

Toggle Content Three

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.


Callouts

View Shortcode

This is a callout that will expand the entire width of its parent container.

Tabs

View Shortcode

  • Tab 1 content

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

  • Tab 2 content

    It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

  • Tab 3 content

    It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.


Latest Posts Anywhere

Displays a list of your latest posts from any given category(s) with the following options. You can see an multiple examples of this shortcode on the front page of this demo.

Parameters:

  • excerpt // displays the post excerpt (false)
  • length // word length of the excerpt (50)
  • thumbs // displays the featured thumbnail (false)
  • width // thumbnail width (100)
  • height // thumbnail height (100)
  • num // number of items to show (5)
  • cat // comma separated category ID’s to display (8,10,11)
  • morelink // option to display the ‘read more’ link (false)

Responsive Sliders

View Shortcode

You can insert sliders as shortcodes anywhere in your content. You can specify your slides from the “Slides” Custom Post Type or you can show a content slider of any of your blog categories.

  • Content Slide One

    Content Slide One

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

  • Content Slide Two

    Content Slide Two

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

  • Content Slide Three

    Content Slide Three

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.


Buttons

Element comes with multiple button styles which can be inserted using a simple shortcode as well. Read the documentation and see the examples on the button styles page.

Columns

Using the various fractional column layout shortcodes, you can create just about any layout imaginable with no knowledge of HTML.
See all Column Shortcodes