You can integrate font icons through the Font Awesome and Glyphical Halflings libraries. These libraries allow you to embed icons through their libraries delivered as a link reference. You don't need any image libraries downloaded in your project.

Font icon options

The theme has two font icon sets integrated: Font Awesome and Glyphicons Halflings. The latter is part of Bootstrap, while the former is independent. Font icons allow you to insert icons drawn as vectors from a CDN (so you don’t have any local images on your own site).

See Font Awesome icons available

Go to the Font Awesome library to see the available icons.

The Font Awesome icons allow you to adjust their size by simply adding fa-2x, fa-3x and so forth as a class to the icon to adjust their size to two times or three times the original size. As vector icons, they scale crisply at any size.

Here’s an example of how to scale up a camera icon:

<i class="fa fa-camera-retro"></i> normal size (1x)
<i class="fa fa-camera-retro fa-lg"></i> fa-lg
<i class="fa fa-camera-retro fa-2x"></i> fa-2x
<i class="fa fa-camera-retro fa-3x"></i> fa-3x
<i class="fa fa-camera-retro fa-4x"></i> fa-4x
<i class="fa fa-camera-retro fa-5x"></i> fa-5x

Here’s what they render to:

1x fa-lg fa-2x fa-3x fa-4x fa-5x

With Font Awesome, you always use the i tag with the appropriate class. You also implement fa as a base class first. You can use font awesome icons inside other elements. Here I’m using a Font Awesome class inside a Bootstrap alert:

<div class="alert alert-danger" role="alert"><i class="fa fa-exclamation-circle"></i> <b>Warning: </b>This is a special warning message.

Here’s the result:

The notes, tips, warnings, etc., are pre-coded with Font Awesome and stored in the alerts.yml file. That file includes the following:

tip: '<div class="alert alert-success" role="alert"><i class="fa fa-check-square-o"></i> <b>Tip: </b>'
note: '<div class="alert alert-info" role="alert"><i class="fa fa-info-circle"></i> <b>Note: </b>'
important: '<div class="alert alert-warning" role="alert"><i class="fa fa-warning"></i> <b>Important: </b>'
warning: '<div class="alert alert-danger" role="alert"><i class="fa fa-exclamation-circle"></i> <b>Warning: </b>'
end: '</div>'

callout_danger: '<div class="bs-callout bs-callout-danger">'
callout_default: '<div class="bs-callout bs-callout-default">'
callout_primary: '<div class="bs-callout bs-callout-primary">'
callout_success: '<div class="bs-callout bs-callout-success">'
callout_info: '<div class="bs-callout bs-callout-info">'
callout_warning: '<div class="bs-callout bs-callout-warning">'

hr_faded: '<hr class="faded"/>'
hr_shaded: '<hr class="shaded"/>'

This means you can insert a tip, note, warning, or important alert simply by using these tags.

{% include note.html content="Add your note here." %}
{% include tip.html content="Add your tip here." %}
{% include important.html content="Add your important info here." %}
{% include warning.html content="Add your warning here." %}

Here’s the result:

The color scheme is the default colors from Bootstrap. You can modify the icons or colors as needed.

Creating your own combinations

You can innovate with your own combinations. Here’s a similar approach with a file download icon:

<div class="alert alert-success" role="alert"><i class="fa fa-download fa-lg"></i> This is a special tip about some file to download....</div>

And the result:

Grab the right class name from the Font Awesome library and then implement it by following the pattern shown previously.

If you want to make your fonts even larger than the 5x style, add a custom style to your stylesheet like this:

.fa-10x{font-size:1700%;}

Then any element with the attribute fa-10x will be enlarged 1700%.

Glyphicon icons available

Glyphicons work similarly to Font Awesome. Go to the Glyphicons library to see the icons available.

Although the Glyphicon Halflings library doesn’t provide the scalable classes like Font Awesome, there’s a StackOverflow trick to make the icons behave in a similar way. This theme’s stylesheet (customstyles.css) includes the following to the stylesheet:

.gi-2x{font-size: 2em;}
.gi-3x{font-size: 3em;}
.gi-4x{font-size: 4em;}
.gi-5x{font-size: 5em;}

Now you just add gi-5x or whatever to change the size of the font icon:

<span class="glyphicon glyphicon-globe gi-5x"></span>

And here’s the result:

Glypicons use the span element instead of i to attach their classes.

Here’s another example:

<span class="glyphicon glyphicon-download"></span>

And magnified:

<span class="glyphicon glyphicon-download gi-3x"></span>

You can also put glyphicons inside other elements:

<div class="alert alert-danger" role="alert">
  <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
  <b>Error:</b> Enter a valid email address
</div>

Callouts

The previously shown alerts might be fine for short messages, but with longer notes, the solid color takes up a bit of space. In this theme, you also have the option of using callouts, which are pretty common in Bootstrap’s documentation but surprisingly not offered as an explicit element. Their styles have been copied into this theme, in a way similar to the alerts:

<div class="bs-callout bs-callout-info">
 This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. </div>

And here’s the shortcode:

{{site.data.alerts.callout_info}This is a special callout information message.

Here’s the result:

This is a special callout information message. You can use any of the following: ``` {{site.data.alerts.callout_default}} {{site.data.alerts.callout_primary}} {{site.data.alerts.callout_success}} {{site.data.alerts.callout_info}} {{site.data.alerts.callout_warning}} ``` The only difference is the color of the left bar. Callouts are explained in a bit more detail in [Alerts][mydoc_alerts]. [titlepage]: titlepage [tocpage]: tocpage [introduction]: introduction.html [support]: support.html [starting-an-instance]: starting-an-instance.html [accessing-database-over-cli]: accessing-database-over-cli.html [create-a-datastore-and-collection]: create-a-datastore-and-collection.html [multi-model-storage]: multi-model-storage.html [multi-model-storage-json]: multi-model-storage-json.html [multi-model-storage-xml]: multi-model-storage-xml.html [webservice-interface]: webservice-interface.html [webservice-insert-data]: webservice-insert-data.html [webservice-load-data]: webservice-load-data.html [webservice-simple-search]: webservice-simple-search.html [webservice-sql-execution]: webservice-sql-execution.html [webservice-simple-stored-procedure]: webservice-simple-stored-procedure.html [webservice-filter-execution]: webservice-filter-execution.html [webservice-delete-data]: webservice-delete-data.html [webservice-saving-or-updating-a-record]: webservice-saving-or-updating-a-record.html [webservice-update-record]: webservice-update-record.html [webservice-create-datastore]: webservice-create-datastore.html [webservice-create-collection]: webservice-create-collection.html [webservice-drop-datastore]: webservice-drop-datastore.html [webservice-drop-datastore]: webservice-drop-datastore.html [webservice-truncate-datastore]: webservice-truncate-datastore.html [webservice-truncate-collection]: webservice-truncate-collection.html [webservice-list-datastores]: webservice-list-datastores.html [webservice-list-collections]: webservice-list-collections.html [webservice-datastore-exists]: webservice-datastore-exists.html [webservice-collection-exists]: webservice-collection-exists.html [webservice-add-user]: webservice-add-user.html [webservice-drop-user]: webservice-drop-user.html [webservice-list-users]: webservice-list-users.html [webservice-change-user-password]: webservice-change-user-password.html [webservice-apply-license]: webservice-apply-license.html [webservice-revoke-license]: webservice-revoke-license.html [webservice-view-license]: webservice-view-license.html [cli-interface]: cli-interface.html [cli-authentication]: cli-authentication.html [cli-command-format]: cli-command-format.html [cli-help]: cli-help.html [cli-exit]: cli-exit.html [cli-create-datastore]: cli-create-datastore.html [cli-create-collection]: cli-create-collection.html [cli-drop-datastore]: cli-drop-datastore.html [cli-drop-collection]: cli-drop-collection.html [cli-truncate-datastore]: cli-truncate-datastore.html [cli-truncate-collection]: cli-truncate-collection.html [cli-list-datastores]: cli-list-datastores.html [cli-list-collections]: cli-list-collections.html [cli-datastore-exists]: cli-datastore-exists.html [cli-collection-exists]: cli-collection-exists.html [cli-sql-execution]: cli-sql-execution.html [cli-load-code]: cli-load-code.html [cli-start-watch-service]: cli-start-watch-service.html [cli-stop-watch-service]: cli-stop-watch-service.html [cli-list-watch-services]: cli-list-watch-services.html [cli-create-user]: cli-create-user.html [cli-drop-user]: cli-drop-user.html [cli-list-users]: cli-list-users.html [cli-change-user-password]: cli-change-user-password.html [cli-apply-license]: cli-apply-license.html [cli-revoke-license]: cli-revoke-license.html [cli-view-license]: cli-view-license.html [cli-view-cluster]: cli-view-cluster.html [cli-view-node]: cli-view-node.html [ftp-service]: ftp-service.html [data-centers]: data-centers.html [titlepage]: titlepage [tocpage]: tocpage [introduction]: introduction.html [support]: support.html [starting-an-instance]: starting-an-instance.html [accessing-database-over-cli]: accessing-database-over-cli.html [create-a-datastore-and-collection]: create-a-datastore-and-collection.html [multi-model-storage]: multi-model-storage.html [multi-model-storage-json]: multi-model-storage-json.html [multi-model-storage-xml]: multi-model-storage-xml.html [webservice-interface]: webservice-interface.html [webservice-insert-data]: webservice-insert-data.html [webservice-load-data]: webservice-load-data.html [webservice-simple-search]: webservice-simple-search.html [webservice-sql-execution]: webservice-sql-execution.html [webservice-simple-stored-procedure]: webservice-simple-stored-procedure.html [webservice-filter-execution]: webservice-filter-execution.html [webservice-delete-data]: webservice-delete-data.html [webservice-saving-or-updating-a-record]: webservice-saving-or-updating-a-record.html [webservice-update-record]: webservice-update-record.html [webservice-create-datastore]: webservice-create-datastore.html [webservice-create-collection]: webservice-create-collection.html [webservice-drop-datastore]: webservice-drop-datastore.html [webservice-drop-datastore]: webservice-drop-datastore.html [webservice-truncate-datastore]: webservice-truncate-datastore.html [webservice-truncate-collection]: webservice-truncate-collection.html [webservice-list-datastores]: webservice-list-datastores.html [webservice-list-collections]: webservice-list-collections.html [webservice-datastore-exists]: webservice-datastore-exists.html [webservice-collection-exists]: webservice-collection-exists.html [webservice-create-user]: webservice-create-user.html [webservice-drop-user]: webservice-drop-user.html [webservice-list-users]: webservice-list-users.html [webservice-change-user-password]: webservice-change-user-password.html [webservice-apply-license]: webservice-apply-license.html [webservice-revoke-license]: webservice-revoke-license.html [webservice-view-license]: webservice-view-license.html [cli-interface]: cli-interface.html [cli-authentication]: cli-authentication.html [cli-command-format]: cli-command-format.html [cli-help]: cli-help.html [cli-exit]: cli-exit.html [cli-create-datastore]: cli-create-datastore.html [cli-create-collection]: cli-create-collection.html [cli-drop-datastore]: cli-drop-datastore.html [cli-drop-collection]: cli-drop-collection.html [cli-truncate-datastore]: cli-truncate-datastore.html [cli-truncate-collection]: cli-truncate-collection.html [cli-list-datastores]: cli-list-datastores.html [cli-list-collections]: cli-list-collections.html [cli-datastore-exists]: cli-datastore-exists.html [cli-collection-exists]: cli-collection-exists.html [cli-sql-execution]: cli-sql-execution.html [cli-load-code]: cli-load-code.html [cli-start-watch-service]: cli-start-watch-service.html [cli-stop-watch-service]: cli-stop-watch-service.html [cli-list-watch-services]: cli-list-watch-services.html [cli-create-user]: cli-create-user.html [cli-drop-user]: cli-drop-user.html [cli-list-users]: cli-list-users.html [cli-change-user-password]: cli-change-user-password.html [cli-apply-license]: cli-apply-license.html [cli-revoke-license]: cli-revoke-license.html [cli-view-license]: cli-view-license.html [cli-view-cluster]: cli-view-cluster.html [cli-view-node]: cli-view-node.html [ftp-service]: ftp-service.html [data-centers]: data-centers.html [titlepage]: titlepage [tocpage]: tocpage [p1_landing_page]: p1_landing_page.html [p1_sample1]: p1_sample1.html [p1_sample2]: p1_sample2.html [p1_sample3]: p1_sample3.html [p1_sample4]: p1_sample4.html [p1_sample5]: p1_sample5.html [p1_sample6]: p1_sample6.html [p1_sample7]: p1_sample7.html [titlepage]: titlepage [tocpage]: tocpage [p2_landing_page]: p2_landing_page.html [p2_sample1]: p2_sample1.html [p2_sample2]: p2_sample2.html [p2_sample3]: p2_sample3.html [p2_sample4]: p2_sample4.html [p2_sample5]: p2_sample5.html [p2_sample6]: p2_sample6.html [p2_sample7]: p2_sample7.html [p2_sample8]: p2_sample8.html [p2_sample9]: p2_sample9.html [p2_sample10]: p2_sample10.html [p2_sample11]: p2_sample11.html [p2_sample12]: p2_sample12.html [p2_sample13]: p2_sample13.html [p2_sample14]: p2_sample14.html [mydoc_hyperlinks.html#automatedlinks]: mydoc_hyperlinks.html#automatedlinks [mydoc_hyperlinks.html#bookmarklinks]: mydoc_hyperlinks.html#bookmarklinks [mydoc_pages.html#someIdTag]: mydoc_pages.html#someIdTag
Tags: formatting