O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hiding all regions on a page

This recipe will outline how simple and yet powerful template variable manipulation can be by demonstrating the steps required to hide all regions on a page. Controlling region visibility is a frequent requirement for pages such as the front page of a site or pages such as landing pages which place an onus on capturing the attention of the viewer. By hiding regions, the designer has more real estate to make use of and there are fewer distractions for the user.

In this recipe, we will look to hide all regions for the front page of the site which is set to display a node. We will also take the opportunity to hide the page title and hide elements such as node links and submission information which are not always necessary ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required