Details:
Drupal 5.7 Theme: sky URL: http://hyc.org/
All pages other than the home page have a line of text above the banner with the page title. The home page has the banner smashed right up against the top of the browser window with no white space above it. How do I get the home page to have the same space above the banner as all the other pages?
-- roy@panix.com
Roy Smith ha scritto:
Details:
Drupal 5.7 Theme: sky URL: http://hyc.org/
All pages other than the home page have a line of text above the banner with the page title. The home page has the banner smashed right up against the top of the browser window with no white space above it. How do I get the home page to have the same space above the banner as all the other pages?
--
roy@panix.com mailto:roy@panix.com
You can use $is_front to see if your are viewing the "front page" of the site.
open template.php (in your sites directory) and write:
function _phptemplate_variables($hook, $vars = array()) { switch($hook) { case 'page': if ($is_front) $vars['title'] = 'Home'; break; } return $vars; }
(code writes with memory and not tested).
M.