Get Full System Path To Drupal Theme

Last modified: 
Sunday, March 29th, 2015

How to get the full system path to a Drupal 6 theme.

$theme = 'default';
$path = $_SERVER['DOCUMENT_ROOT'] . base_path() . drupal_get_path('theme', $theme);

The advantage to using drupal_get_path() is that it will work in modules as well as themes.


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.