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 for the front page of a site.
Getting ready
We will be using the myzen theme created earlier in this book as the example theme in this recipe. It is assumed that the front page of the site is set to display a single sample node.
How to do it...
Since...