In my template whenever I call the path to my theme in a particular language it adds a language suffix dir like mysite.com/fr/sites/all/themes/mytheme while I'm expecting a path without a prefix (e.g. mysite.com/sites/all/themes/mytheme).

I'm use drupal_get_path() or path_to_theme().

How can I ensure I get the right path in my template?

1 Answer 1


You can use base_path() and drupal_get_path('theme', 'yourthemename') functions to get correct path.


$output = base_path() . drupal_get_path('theme', 'yourthemename');



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.