Maybe this is a feature, not a bug, but I'm really confused as to why creating page-front.tpl.php doesn't seem to have any effect in making a unique front page in a Zen subtheme. This thread recommends creating page-default.tpl.php as a workaround, but that strikes me as inelegant and unnecessary. Let me know if there's something totally obvious that I'm missing, but if not, I'd love to see this fixed in the future.

Comments

jatonline’s picture

Assuming you've cleared your cache at admin/settings/performance and it still didn't work, have you tried copying Zen's page.tpl.php (unmodified) to your subtheme directory as well, then clearing your cache again?

The documentation says:

Suggestions only work when it is placed in the same directory as the base template. In other words, trying to get comment-blog.tpl.php to work, comment.tpl.php also needs to exist inside your theme and in the same directory.

I'll admit it wasn't obvious to me until I did a bit of searching and (careful) reading.

jatonline’s picture

Category: bug » support
johnalbin’s picture

Status: Active » Fixed

Thanks, jatonline! That's the correct solution.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

relish27’s picture

Component: Code » layout.css

jatonline -- thanks for your help here. I am a relative newb to Drupal and I have two Drupal projects in progress right now. I was able to get this to work with the first project but must be missing something with the second. I tried your suggestion of just putting the default page.tpl.php in my templates folder (I already had a customized one in there) but nothing has changed.

Is there something else that needs to be done to define the home page as the front page and thereby trigger the user of the page.front.tpl.php page? I'm stumped.

UPDATE: Found it!! http://drupal.org/node/1051260