[...]
The unique id is important, and needs to be initialised in the JS file /assets/js/initialise-functions.js, as below:
$('#[unique id for each carousel]').carousel({ [...] });
The "data-height-percent" attribute is optional, and set the percentage height that the carousel should have in proportion of the window height (on large, non-mobile viewports).
The carousel includes indicators (slide titles as navigation):

These are found inside <ol class="carousel-indicators title-indicators">, and should represent all the carousel slides.
It is important that the "data-target" attribute for each indicator is the unique id of the carousel.
Each carousel slide is found inside <div class="carousel-inner">, as follows:
[... custom slide content ...]
The carousel includes navigation left/right arrows to move from one slide to another. These are found at the bottom of the carousel container:
It is important that the "href" attribute for each link is the unique id of the carousel.
Image Carousel in Popup - top

The theme also includes Owl Carousel, a responsive slider/carousel which allows you to create elegant image sliders.
In TWILLI Air, Owl Carousel can be placed inside a popup (see section Content Popups above), and initialised when the popup is opened.
The content for the image carousel is placed inside the <div class="content-to-populate-in-modal"> as below:
Every Owl Carousel which are found inside a popup and have a class of ".popup-image-gallery" are initialised in the /js/initialise-functions.js when the popup is visible, using the Bootstrap "shown.bs.modal" carousel event handler:
$('#common-modal').on('shown.bs.modal', function()
{
[Owl Carousel parameters]
});
The Owl Carousel parameters here can be modified how you want. More information on these can be found on the Owl Carousel website: www.owlgraphic.com/owlcarousel
Since the carousel is in a popup, an extra function in /js/initialise-functions.js destroys the carousel when the popup is closed (it would be re-initialised when popup is re-opened). This is done using the Bootstrap "hide.bs.modal" carousel event handler and the Owl Carousel destroy() function:
$('#common-modal').on('hide.bs.modal', function()
{
[...]
});
Alternative Image Gallery Carousel

The template also offers an alternative image gallery carousel inside a popup. Similar to the instructions mentioned above, the content for the alternative image carousel is placed inside the <div class="content-to-populate-in-modal"> as below:
Every alternative image gallery which are found inside a popup and have a class of ".popup-alt-image-gallery" are initialised in the /js/initialise-functions.js when the popup is visible, using the Bootstrap "shown.bs.modal" carousel event handler, as described above.
Please note that although TWILLI Air comes with this type of image carousel INSIDE a popup, you can still use Owl Carousel anywhere in the theme where you want. If you want to do so, or to create a different carousel with different parameters, use the same HTML described above but remove the class ".popup-image-gallery". Then, intialise it in /js/initialise-function.js or at the footer of the page using the unique ID of that particular carousel instead of the class.
Tabs - top

Since version 1.3.0, TWILLI Air includes a Bootstrap Tabs section (<article id="tabs">). This sections is ideal for content which can be categorised in multiple sections. More information about Bootstrap Tabs can be found on Bootstrap's documentation page.
Tab Icons
On TWILLI Air, tabs can include icons (Glyphicon or Font Awesome). These can be enabed/disabled and can replace tab text completely.
Each tab's icon and text are structured as follows:
Iaculis
Icons are included in
<i> and text in
<span>. Either of them can be removed.
To hide text (and show icons only) on different viewports (ex: on small devices only) you assign the following attributes to the <ul class="nav nav-tabs" text-hidden-xs="true"..>
- text-hidden-xs="true": On extra small devices (mobile), text is hidden and only icons are displayed.
- text-hidden-sm="true": On small devices (tablets), text is hidden and only icons are displayed.
- text-hidden-md="true": On medium and large devices (desktops), text is hidden and only icons are displayed.
- If either is set to false, both icons or text are shown.
For more information about which icons to use, see section Scalable Font Icons below.
Initialising custom Javascript functions after tab is shown/hidden
If you want to initialise a custom JS function when a tab is shown/hidden, you can use event handlers as described in Bootstrap's documentation.
For example, to initialse a function after a tab pane is shown, in the JS file /assets/js/initialise-functions.js, add the following in the initialise_document_ready_functions():
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
// function to initialise when tab is shown
});

When installing this theme, it is important to change the 2 email addresses at the top of the assets/php/mail.php file:
- $email_to - the email address that you want this form to send to.
- $email_from - the "From:" email address with which form submissions are sent (important that it has the same domain as the domain of your site - unless you have configured your server's mail settings)
The form includes the following fields:
- Full Name - required
- Email Address - required
- Contact Number
- Message - required
The form also includes a CAPTCHA, intended to filter spam. The captcha only works if a PHP server is set (locally you need to use a tool like XAMPP, WAMP, or MAMP).
Scalable Font Icons - top
TWILLI Air makes use of two scalable font icon sets:
Glyphicons
To add a Glyphicons icon, use the following code:
<span class="glyphicon glyphicon-[icon id]"></span>, OR:
<i class="glyphicon glyphicon-[icon id]"></i>
The full list of the available icons and their IDs can be found on: getbootstrap.com/components.
Font Awesome
To add a Font Awesome icon, use the following code:
<span class="fa fa-[icon id]"></span>, OR:
<i class="fa fa-[icon id]"></i>
The full list of the available icons and their IDs can be found on: fortawesome.github.io/Font-Awesome/icons/.
Remember that these icons should be treated as "text" rather than an "image icon". This means that if, for example you want to change their colour, you should use the CSS "color" rule, as you do to any text. If you want to increase their size, you have to alter their "font-size" value... and so on.
Social Icons - top

To edit the social icons list, you have to look for the <ul class="social-icons">.
- Each social icon item should follow this format:
-
- A list of social icons options (which are used in the <img>) is found in the directory /assets/images/theme_images/social_icons/
Sources and Credits - top
Resources:
Fonts:
Images:
TWILLI Themes
Go To Table of Contents