Add HEAD Elements Before CSS Includes

From TNG_Wiki
Jump to: navigation, search
Add HEAD Elements Before CSS Includes
Summary This mod adds an option to templates to include another file that will be included before the inclusion of the CSS files in the HEAD section of the page. This is useful for including ie webfonts or scripts that need to loaded earlier on the page.
Validation This mod is XHTML compliant.Valid-xhtml10.png
Mod Updated {{{mod_last_update}}}
Download link
TNG 9.0
Download stats view statistics
Author(s) Max Westen
Homepage Add HEAD Elements Before CSS Includes (This page)
Mod Support TNG Forums
Contact Developer Max Westen
Latest Mod for TNG V9 and above
Min TNG V 9.1.2
Max TNG V 9.2.0
Files modified
Related Mods
Backup your genlib.php BEFORE installing this mod


This mod was developed to be able to load external fonts on the page, before the CSS that is using it is called.

The mod adds an include line in genlib.php that checks if the file head.php exists in the selected theme folder. If it does, the contents of this file is included.


Max Westen developed this mod.


Allows you to:

  • add links(fonts, css, javascript) to the HEAD section of every page, before the CSS files are included.
  • Allows you to add anything you like in the HEAD


  • A working TNG installation.
  • A backup of your TNG genlib.php file.

Revision History

Version Date Contents
v9.0.0.2 26 April 2013 The first public release for TNG 9

Automated Installation

  1. Download the file for TNG from the download links in the mod summary area in the upper right.
  2. Extract the to your mods folder.
  3. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the add_head_before_css_v9.0.0.2.cfg.

In the event of a problem with your TNG site

  1. Try using the Mod_Manager - Interpreting Status Remove capability
  2. Or copy your backed-up genlib.php file to your TNG directory
  3. All should be well now

Sites using this mod

If you download and install this mod, please add your TNG site to the table below:

URL User Note Mod-Version TNG-Version User-language
Max Westen's genealogie site Max Westen I use this TNG mod to include the Yanone Kaffesatz font from Google WebFonts, so it is shown on systems that don't have this font installed on their system too. 9.0.3 EN, NL