Description
ptl-hero-banner will add a hero banner to the page. A number of parameters are supported:
- image - REQUIRED. The background image file.
- title - OPTIONAL. The main banner title, printed with a large font.
- text - OPTIONAL. Text printed below the main title with a smaller font.
- img-position - OPTIONAL. Defines the vertical orientation of the image. Permitted values are top and bottom. The image will be vertically centred if this parameter is omitted.
Example
- image DEFINED
- title=’A Banner Title’
- text=’Some banner text’
Example
A vertically-oriented image has been used for this example. This is an exaggerated example to illustrate the use of the img-position parameter.
- image DEFINED
- title='Title'
- image DEFINED
- title='Title'
- img-position='top'
- image DEFINED
- title='Title'
- img-position='bottom'
Example
- image DEFINED
- title=’Banner Title over a Pale Image’
- text=’Some banner text over a pale image’