How to create a custom home page on your Drupal / Zen site

Just found out how easy this is in the Drupal.org forums:

If you have a drupal site using the Zen them, and you want a radically different home page than the rest of your theming, and you know how to code even simple HTML/CSS, then you're in luck.

Take your page.tpl.php from sites/all/themes/zen/zen to your subtheme folder, naming it page-front.tpl.php. Code out the page you want, flush your themes registry in Drupal and VOILA.

*Note - it will look for images, stylesheets and other files you reference in the root of your Drupal site. NOT the root of your subtheme.

1 Reply

thanks for sharing but its not that easy.

well if you simply need a different template for ALL internal pages and one for the front page you can just use page.tpl.php (thats for internal/default pages) and page-front.tpl.php (for the front page).

Otherwise there isnt a "quick and easy" way to do that, however there are multiple ways.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct