Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How do you unset the node title on the front page?
In Omega 7.x-3.x, the can usually pre-process the the page through template.php and use something similar to this:
function theme_preprocess_page(&$vars) {
if ($vars['is_front'] == 'TRUE') {
$vars['title_hidden'] = 1;
}
}
However, in Omega 7.x-4.x there is no longer a "$vars['title_hidden']" when trying to pre-process the page. The following suggestion does not seem to work in either the template.php file or the page.preprocess.inc files:
function theme_alpha_preprocess_page(&$vars) {
// Hide the node title on the front page
if($vars['is_front']) {
$vars['title'] = '';
}
}
Thanks in advance!
Comments
Comment #1
JayVGee CreditAttribution: JayVGee commentedComment #2
JayVGee CreditAttribution: JayVGee commented