Order by midnight on Wednesday for guaranteed delivery before the weekend
Basket

No products in the basket.

Aquarius Theme Shortcodes

A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. Shortcode = shortcut.

We have built a few shortcodes into this website to allow advanced functionality to be achieved simply. Shortcodes usually take one or more attributes to customise their output. You will only see the results of the shortcode when viewing the public-facing web page that the shortcode has been included in. The following is a break-down of the included shortcodes and examples of their usage.

email

Creates a spam-proof email link.

Attributes:

Example usage:

Email John now

strip

Creates a horizontal, full-width strip. These are useful for visually breaking up sections of content within a page. Strips are ‘enclosing’ shortcodes meaning that they have an opening and closing shortcode with any content within the shortcodes essentially being ‘wrapped up’ within them.

By default, the strip shortcode creates an HTML <section> tag so you should also include a level 2 heading as the first element within the strip.

If you wish to use the column shortcode to create a columnised layout you should always wrap them within a strip.
Attributes

Examples:

Strips should always include an H2 level heading

Unless they have their type set to ‘div’. This content is residing in its own strip.


column

Creates a column of content at the width specified. Columns use the same width keywords as Blocks (shown below). Like Strips, Columns are ‘enclosing’ shortcodes, meaning that they have an opening and closing shortcode with any content within the shortcodes being ‘wrapped up’ within them. Columns should be used within Strips for best presentational results.

Attributes:

Notes:

Examples:

This is column one

This is column two

This is column three


shown

This shortcode allows you to show content until the users viewport reaches a specified size. This shortcode will usually be used in tandem with the ‘hidden’ shortcode to vary the content that is displayed for users viewing the site at different viewport widths. For example, a table with several columns of data will display fine at desktop resolutions but not at mobile widths. Therefore, it would be better to perhaps display the table as a PDF for mobile users.

Attributes:

Examples:

Note: You will only see the example if you are using a device with a viewport width of 320 pixels or less.

This paragraph will only show up on devices with a width of 320 pixels or less EG iPhones (<= iPhone 6 and above) in portrait orientation.


hidden

This shortcode allows you to hide content until the users viewport reaches a specified size. This shortcode will usually be used in tandem with the ‘shown’ shortcode to vary the content that is displayed for users viewing the site at different viewport widths.

Attributes:

Examples:

Note: You will only see the example if you are using a device with a viewport width of 321 pixels or greater.

This paragraph will only show up on devices with a width of 321 pixels or more.

No spam guarantee. See our Privacy Policy for full details