Is there a default variable which holds the path to the active theme? I am trying to insert images into the theme, and I would like to avoid using the absolute URL. I looked around, but haven't seen any info about this. Thanks.

Comments

mdixoncm’s picture

There is a nifty function

path_to_theme();

best combined with

print "full path to the theme : " . base_path() . path_to_theme();

Cheers,

mike

Like books? Check out booktribes the new (Drupal based) community for book lovers
from Computerminds

styro’s picture

...if you wanted to make that available to your templates as a variable:

http://drupal.org/node/16383

--
Anton
New to Drupal? | Troubleshooting FAQ
Example knowledge base built with Drupal

zach harkey’s picture

Excerpt from Handbook page: Page.tpl.php

$directory
The directory the theme is located in , e.g.
themes/box_grey or themes/box_grey/box_cleanslate.

-zach
--
harkey design

: z