Knowledgebase

Joomlabamboo template and extension documentation

Overview

fontsThe fonts panel controls the font family and font-size of the fonts used in the template.

 

 

Base font size.

base-font

Sets the base font size to be applied to the site. All other fonts should be referenced as a %, em or rem based on this setting.

 

General font-family settings

Body font.

Applies to all fonts displayed on the page. Other fonts can be overwritten based on the settings below.

body-font 

Heading Font

Applies to h1, h2, h3, h4, h5, h6 and Blockquote styling on the page. 

 heading-font

Nav Font

Applies to the font used for the list items and links in the main menu.

nav-font

 

General font options.

In each T3 based Joomla template it is possible to select from the following options in the drop down list, for each individual font setting.

  • Cambria, Georgia, Times, Times New Roman, serif
  • Adobe Caslon Pro, Georgia, Garamond, Times, serif
  • Courier new, Courier, Andale Mono
  • Garamond, ‘Times New Roman’, Times, serif
  • Georgia, Times, ‘Times New Roman’, serif
  • GillSans, Calibri, Trebuchet, arial sans-serif
  • Helvetica Neue, Helvetica, Arial, sans-serif
  • Lucida Grande, Geneva, Helvetica, sans-serif
  • Palatino, ‘Times New Roman’, serif
  • Tahoma, Verdana, Geneva
  • League Gothis
  • Google Font

 

League Gothic

This option loads the open source font called League Gothic via the font face method.

 

Google Font

This option loads fonts directly from the Google Font Api.

 

Using Google fonts in a T3 based Joomla template

googlefont

When using this option a new text area is opened where you can enter the exact name of the font you want to use on your site.

 

  • Step by step google fonts:
  • Go to http://google.com/webfonts
  • Select the font you want to use on your site.
  • Click on the “Quick use” button at the bottom of the page.
  • Copy the name of the font including any spaces used in the name into the text area provided for that selector in the template admin. 

 

For example to use Roboto Condensed simply type

Roboto Condensed

 

End User note:

Please note that different template styles can use different fonts for their elements so any changes to the fonts need to be made across all styles associated with this template.

 

Developer note - where is the code?

The template uses the javascript loader option to load the relevant font information on the page.

fonts-folder

The code used to do this can be found in the tpls/blocks/fonts.php file.

The font.php file is then referenced as the last code block in the template’s layout file. eg tpls/default.php.

The required css is loaded via inline css which is referenced in the head of the template via the tpls/block/head.php file.