Closed (fixed)
Project:
Acquia Slate
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2010 at 11:53 UTC
Updated:
22 Apr 2012 at 14:51 UTC
Hi, How to remove content on frontpage? I tried to disable print $content in page-front.tpl.php but it doesnt work.
thanks
Comments
Comment #1
dg@drupal commentedNot sure if it works. But can you try
if (!$is_front) print $content;I used it in node.tpl.php to hide "posted by" and it works.
Comment #2
jeremycaldwell commenteddg@drupal is correct! Make that change to the $content variable in your "page-front.tpl.php" and that will hide the content area on the homepage.
Comment #4
Chalaneru commentedThis works too for Corporate Clean theme.
Thanks for your help, dg@drupal.
Comment #5
gismagnus commentedActually, by default drupal shows last nodes added to your site (yoursite.com/node). And if you will hide $content variable template, drupal will still query nodes. You have to edit site frontpage default value in 'admin/settings/site-information'. Using hook_menu, you can set it to empty function returning nothing.