1

I noticed that if there is content placed in the main content block, "No front page content has been created yet. Add new content" will appear on front page or perhaps any page. Most templates will be done in blocks, except node pages.

Can it be totally removed? If yes, how?

2

Add this to your theme's template.php file

function THEME_preprocess_page(&$variables) {
  if ($variables['is_front']) {
    unset($variables['page']['content']['system_main']);
  }
}
  • did that before but it wouldn't work. now it is working when I tried again. weird. thanks! – joe Mar 22 '15 at 9:17
  • Template/theme changes often require a cache clear. – Brady Mar 22 '15 at 10:04
1

Easy. Specify a front page other than the default in your site configuration settings.

1

Actually you did not create an front page or home page yet.So you should create an page which will be your default home page.

So first create a page

And Go to

`Configuration->System->System Information` 

and set the url Under 'Default front page'

You also can create a template file for front page as page--front.tpl.php

For more info check front page template and front page

  • thanks but i have created page--front.tpl.php and it is still showing content. :( will look into the links – joe Mar 22 '15 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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