How do I modify...not replace...the front page of a Drupal site? I want to keep the list of articles as the default is configured but add a simple photo at the top of the page. The Front Page module seems to provide a way to replace the home page entirely, but I just want to amend it.

Comments

add1sun’s picture

You can edit the template files of the theme. If you are using a contributed theme you should copy it and create a custom theme with your changes. You can do a simple $is_front check to show things only on the front page. If you want to make major changes to the home page you can create a new home page only template file called page-front.tpl.php.

Read the theme handbook for more info: http://drupal.org/theme-guide/5 is for D5.

Lullabot loves you | Be a Ninja, join the Drupal Dojo

Drupalize.Me, The best Drupal training, available all the time, anywhere!

TapSkill’s picture

The simple solution is to add a new block that only shows on and nothing else. The block options are extremely flexible, and they're easier to work with than PHP code. I hope my comment helps someone, even if it's late.

---
I have created and maintained countless Drupal-powered sites and have made heavy modifications to modules on a site-by-site basis. I am an illustrator, a game developer, and a web developer. I also stream on Twitch in my spare time.