Does anyone know how to remove page titles from displaying on each node with this theme? I took a look through the style.css but couldn't find anything that seemed relevant. Thanks!

Comments

Deepika.chavan’s picture

Hi,
Page title on each node is coming from following line of code, which is line no- 72 of page.tpl.php.

<?php if ($title): ?><h1 class="title"><?php echo $title; ?></h1><?php endif; ?>

So either comment or remove this line of code from page.tpl.php, to remove the page title.
Before doing this please take back up of your page.tpl.php file so that you can revert it back whenever you want.

Rgrds,

Deepika Chavan.

technicalknockout’s picture

Status: Active » Closed (works as designed)

The theme is designed to display the title, so marking "closed (works as designed)". Deleting the line of code above should delete the page titles as requested. If you want more control over when to display and when not you could add to the theme template.php file:

<?php
function wilderness_preprocess_page(&$vars) {
  if ( ... your condition ... ) {
    $vars['show_page_title'] = TRUE;
  }
}
?>

Then use your variable in the page.tpl.php

<?php if ($title && $show_page_title): ?><h1 class="title"><?php echo $title; ?></h1><?php endif; ?>