logo

Palette - Make it Colorful🎨

Palette - Visual Page Builder, no design degree required.

Live Demo Download Palette

Scroll

Drupal Theming Lesson 2 Part 3 Finishing the Home Page Layout

17/04/2025, by Ivan

In this lesson, we will:

  • finish the layout of the homepage,
  • create a template specifically for the homepage,
  • assign the homepage,
  • add and theme additional blocks.

Question: Good evening. Ivan, I watched your lesson about theming the homepage. You removed the H1 tag from the template so that the node title doesn’t show. I followed along, but for some reason the title is still there. Could there be something else I’m missing? Or should I use CSS with display: none?

Answer: I may have explained it a bit chaotically at the end. There are two ways to remove the tag: either using CSS or in the template. If using CSS, it’s straightforward—just apply display: none. If you want to do it in the template for the homepage, you need to override the homepage template. To do that, I created a template file named page--front.tpl.php and copied the contents from page.tpl.php. After clearing the cache, you can independently theme the homepage.