Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building a drupal 7 bootstrap sub theme and want to hide the title of the nodes if there on the home page. I don't want to use css as its only hiding it I want to have the titles not render at all.

i have tried hook_preprocess_page() but didnt work:

function mytheme_preprocess_page(&$vars) {
    if ($vars['is_front']) {
        $vars['title'] = '';
share|improve this question
up vote 4 down vote accepted

Your close with hook_preprocess_page() but as you want to hide the node title (and not the page title) you need to use hook_preprocess_node() instead.

share|improve this answer
Thank you it worked, perfectly. – Patrick W. McMahon Feb 2 at 2:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.