Theme won't load

kkobashi - November 18, 2008 - 02:34

I'm on a multisite Drupal installation using 6.6. My first Drupal site loads fine without problems. However a newly created second Drupal site won't load my new custom theme.

When I go to admin | theme Drupal sees it (I put the theme in the main /themes directory and not /sites/mysite/themes) and I enabled it and made it the default for my second Drupal site.

My page-front.tpl.php isn't being loaded.

Any ideas?

Splash Page

hferree - November 18, 2008 - 05:02

When I had a client that wanted a splash page, none of the typical drupal naming worked (I use my testing server to run about 3 drupal sites at a time, but I don't think that had anything to do with it). Instead I had to add the following php code at the top in the main file (page.tpl.php) for the front page to work. Name the home.tpl.php file whatever you like. :)

<?php
if ($is_front){

  include(
'home.tpl.php');
  return;
}
?>

did you clear the theme

jmburnz - November 18, 2008 - 10:35

did you clear the theme registry (performance settings > clear cache data), if you added the page-front after you enabled the theme, Drupal wont see the new template until you do this, try it anyway if you havent already.

 
 

Drupal is a registered trademark of Dries Buytaert.