0

Possible Duplicate:
Removing the “No front page content has been created yet.” message from the front page

I am using the Zen theme and don't wan't any "nodes" on my homepage. I've got menus and blocks, but not nodes as such. I don't want the "No front page content has been created yet" text to appear. What is the best way to get rid of it?

I've currently only got one template that I'm using. page.tpl.php

drupal_set_title(t('Welcome to @site-name', array('@site-name' => variable_get('site_name', 'Drupal'))), PASS_THROUGH);

$default_message = '<p>' . t('No front page content has been created yet.') . '</p>';
0

1 Answer 1

0

If you add a node, publish and check "promote to front page" the "No front page content" message will disappear, even if the node isn't shown at all.

See node_page_default for the logic there.

Alternatively, you could look into use hook_page_alter to remove the $build['default_message']

3
  • Thanks. How do I promote a node to the front page by not showing the node?
    – kine456
    Commented Jan 22, 2013 at 3:22
  • You can use a different path for your front page in Admin > Config > Site information. For example, use a page provided by the Views or Panels module. Commented Jan 22, 2013 at 10:11
  • Will this mean that I will need to recreate the homepage?
    – kine456
    Commented Jan 22, 2013 at 22:18

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