Remove Welcome message and "No front page content has been created yet." The home page of my website contains blocks and views only. Hence, I want to remove both of the following message-


Welcome to my web
No front page content has been created yet.


I tried to add following code as described here but I can still see the message Welcome to my web

unset($page['content']['system_main']['default_message']);
Both are displayed by the different code, hence you need to unset/remove both.

1. Create a separate front page template: In your theme's tempaltes folder make a duplicated of page.tpl.php and rename the dulpicate one as page--front.tpl.php. Now your all other pages will be handeled by page.tpl.php and the only front-page will be handeled by page--front.tpl.php.

2. Edit the page--front.tpl.php template: Now, as you said you are able to remove the message using the code which is in your Question, so go ahead with that.

Secondly, remove the following code from your page--front.tpl.php, which will remove the Welcome...... part.

&lt;?php if ($title): ?&gt;
   &lt;h1 id="page-title"&gt;
     &lt;?php print $title; ?&gt;
   &lt;/h1&gt;
&lt;?php endif; ?&gt;