What are shortcodes?

Article ID: 272
Last updated: 29 Jun, 2013

When you load up the eWeb 2.0 Content Management System for the first time, you might notice that when you go to edit one of your pages you'll find that, instead of the content you see on the live page, all you can see is a bit of text inside some square brackets.

For example, instead of seeing your contact form, you might see:

[contact-form-7 id="112" title="Contact form 1"]

This is what's called a shortcode. The eWeb 2.0 CMS, based on Wordpress, uses these shortcodes to place more complex features on your pages. Usually they are there to pull in data or features created somewhere else in the Content Management System.

In the above example, the shortcode is being used to put a form onto the page. The form itself is created and modified using the Contact Form 7 plugin, which can be accessed from the Contact menu in the left sidebar of the Dashboard.

Common shortcodes:

  • [contact-form-7] This shortcode is used to place your forms created using the 'Contact' menu into your page. Typically the shortcode will also include an id and title. Since it's possible to make multiple forms, these are used to get a specific form.
  • [gallery] This shortcode is used to insert a basic Wordpress gallery. To make or manage a Wordpress gallery, click the Upload/Insert button just above the editor. Here you can upload images to the page. When they are uploaded you can see the 'Gallery' tab, where you can generate a gallery shortcode to display your uploaded images (If you don't see the tab, try closing the Media window and opening it again). The gallery shortcode will often be accompanied by additional tags that control things like the number of columns and the order of the images.
  • [testimonials] If you have the Testimonials plugin, you can use this shortcode to place your testimonials on a page.

Also listed in
folder eWeb 2.0 -> Editing Pages
folder eWeb 2.0 -> Advanced Features

Prev   Next
Why do I see some text inside square brackets instead of my...     How do I create a password protected page?