Using shortcodes in posts and pages
This tutorial covers the way you can add shortcodes to pages and posts in the Restaurant theme.
To get a good idea of what shortcodes look like, and what they do, take a look at this page: Shortcodes. Use them to devide your content into smaller columns, or to add lines to seperate paragraphs.
So how do we set up a column? First, decide how big you want your column. On the shortcode page, you can see all the different sizes. Next, place the shortcode in your content. Be sure to close it like in the example below. Closing it means putting a ‘[/column]’ tag at the end of the column. All the content you want in your column should go between your starting en closing tag.
[column size=”2×1″ title=”This is a column shortcode” sample=”true” last=”true”]
So what does this all mean?
Size: the size of your column. You can choose between 2×1, 3×1, 3×2, 4×1, 4×3
Title: The title of your column. This is completely optional, so it’s up to you to use it or not.
Last: Only use this if it’s the last column on a row (horizontally). This will prevent it from jumping down the page.
You can also add lines to your content with the following shortcode:
[line sample=”true”]