OK ..... I have looked through this forum and I can't seem to locate the solution.

I am trying to get rid of the default block that reads:

Welcome to your new Drupal website!
Please follow these steps to set up and start using your website:

If I deable all the blocks this block is still showing on the front page.

Any idea's ?

Comments

tnutall’s picture

◦In 5.x and 6.x, go to www.yourdomain.com/admin/settings/site-information

This sends me to a dead link.

WorldFallz’s picture

You did replace the 'www.yourdomain.com' with the actual address of your site, yes?

tnutall’s picture

Yes I did.

I also tried all 3 options.
in the 3rd one the line print $content; is not in the page.tpl

ok I located the script but it was on the node.tpl page not the page.tpl

WorldFallz’s picture

It's not a block there's nothing to disable or edit in page.tpl.php to get rid of it.

per that handbook page:

If you are seeing this message, it is because your front page is set to 'node' and you have no content promoted to the front page.

To fix this, you either need to (1) promote something or (2) change your front page, or (3) add an url alias.

I have no clue why you think you need to edit page.tpl.php-- is there something unclear or confusing about this?

tnutall’s picture

This is the instructions that are on the page.

A simple way to change what displays on the front page without installing modules:
In your themes page.tpl, change the line

print $content;

and replace it with

if (!drupal_is_front_page()) {
print $content;
}

This prevents the "front" page from displaying the any of the content that would normally show there. You can have your frontpage free from the default welcome message of "River of News" but with all the other things.

WorldFallz’s picture

My bad, I hadn't noticed that addition to the page. Not the method I would have chosen, but whatever. What theme are you using? Every theme should have some form of $content, $content_top, $content_bottom, etc-- something like that (with '$content' in it). The one in node.tpl.php is not what you want.

tnutall’s picture

I'm using the deco theme

tnutall’s picture

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>">

<head>
  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
  <?php print $styles; ?>
  <?php print $scripts; ?>
	<!--[if lt IE 7]>
  <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/fix-ie6.css";</style>
  <![endif]-->
	<!--[if gt IE 5]>
  <style type="text/css" media="all">@import "<?php print base_path() . path_to_theme() ?>/fix-ie.css";</style>
  <![endif]-->
</head>

<body class="<?php print $body_classes; ?>">
  
<?php if (!empty($header)): ?>
	<div id="header-region" class="clear-block"><?php print $header; ?></div>
<?php endif; ?>

	<div id="container" class="clear-block">
		
		<div id="header">
			<div id="top-bar">
			<?php if (isset($secondary_links)) : ?>
				<div class="region-content">
        <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
				</div>
      <?php endif; ?>
			</div>
			
			<div class="region-content">
				<?php
				if ($logo || $site_title) {
        	print '<h1><a href="'. check_url($base_path) .'" title="'. $site_title .'">';
        	if ($logo) {
          	print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
        	}
        	print ($logo ? '' : $site_title_html) .'</a></h1>';
      	}
				?>
			
				<?php if (isset($primary_links)) : ?>
        	<?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
      	<?php endif; ?>
			</div>
		</div> <!-- /header -->
		
		<div id="center">
			<div id="featured">
				<?php if ($mission || $featured): ?>
				<div class="region-content">
				<?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
				<?php if ($featured): print $featured; endif; ?>
				</div>
				<?php endif; ?>
			</div>
			
			<div id="breadcrumb"><div class="region-content">
				<?php if ($breadcrumb): print $breadcrumb; endif; ?>
			</div></div>
			
			<div id="main">
				<div id="sidebar-wrapper">
					<?php if (!$sidebar_triple): ?><div class="top-corners"><div class="bottom-corners"><?php endif; ?>
					<?php if ($sidebar_left): ?>
	        <div id="sidebar-left" class="sidebar">
	         	<?php print $sidebar_left ?>
	       	</div> <!-- /sidebar-left -->
	      	<?php endif; ?>
	
					<?php if (!$sidebar_triple): ?>
					<div id="content">
						<div id="squeeze">
						<?php if ($pre_content) { print $pre_content; } ?>
						<?php print phptemplate_render_content($content, $tabs, $title, $help, $show_messages, $messages, $feed_icons, $body_classes) ?>
						</div>
					</div> <!-- /content -->
					<?php endif; ?>
	
					<?php if ($sidebar_right_sec): ?>
	        <div id="sidebar-right-sec" class="sidebar">
	          <?php print $sidebar_right_sec ?>
	        </div> <!-- /sidebar-right-sec -->
	      	<?php endif; ?>
	
					<?php if ($sidebar_right): ?>
	        <div id="sidebar-right" class="sidebar">
	          <?php print $sidebar_right ?>
	        </div> <!-- /sidebar-right -->
	      	<?php endif; ?>
	
					<?php if ($sidebar_triple): ?>
					<div id="content">
						<?php print phptemplate_render_content($content, $tabs, $title, $help, $show_messages, $messages, $feed_icons, $body_classes) ?>
					</div>
					<?php endif; ?>
					
					<span class="clear"></span>
				</div><?php if (!$sidebar_triple): ?></div></div><?php endif; ?> <!-- /sidebar_wrapper -->
			</div> <!-- /main -->
			
			<div id="content-bottom">
				<?php if ($content_bottom): print '<div class="region-content clear-block">'.$content_bottom.'</div>'; endif; ?>
			</div>
			
		</div> <!-- /center -->
	
		<div id="footer"><div class="top-border"><div class="bottom-border">
			<div class="region-content">
			<?php if (isset($footer_region)) { print $footer_region; } ?>
			<?php if (isset($primary_links)) : ?>
      	<?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
    	<?php endif; ?>
			<?php if (isset($footer_message)) { print '<p id="footer-message">'.$footer_message.'</p>'; } ?>
			<span class="clear"></span>
			</div>
		</div></div></div> <!-- /footer -->
	</div> <!-- /container -->
	<?php print $closure ?>
</body>
</html>

Edited by WorldFallz - added <code> tags for readability.

WorldFallz’s picture

Seems to be doing something a little funky with $content in custom function, but it is there:

<?php if ($sidebar_triple): ?>
<div id="content">
<?php print phptemplate_render_content($content, $tabs, $title, $help, $show_messages, $messages, $feed_icons, $body_classes) ?>
</div>
<?php endif; ?>

That's what you want to change, probably to something like:

<?php if ($sidebar_triple && !drupal_is_front_page()): ?>
<div id="content">
<?php print phptemplate_render_content($content, $tabs, $title, $help, $show_messages, $messages, $feed_icons, $body_classes) ?>
</div>
<?php endif; ?>
tnutall’s picture

That didn't work