Hello-

Love the theme, very easy to work with.

Is there an easy way to remove the links from the titles on the front page? I've seen other posts advising to edit node.tpl.php (http://drupal.org/node/437278), but the code in question is not there.

Thanks,
rnsi

Comments

rnsi’s picture

Possible solution:

As referenced in http://drupal.org/node/317018, I changed node.tpl.php:

Replace:

  <?php if (!$page): ?>
    <h2 class='node-title'>
      <?php print $title ?>
    </h2>
  <?php endif ?>

With:

  <?php if (!$page): ?>
  <?php // Remove links from titles on front page
  $link_pattern = "/<a[^>]*>(.*)<\/a>/iU";
  $title = preg_replace($link_pattern, "$1", $title);
  ?>  
    <h2 class='node-title'>
      <?php print $title ?>
    </h2>
  <?php endif ?>

Is there a better way?

rnsi.

psynaptic’s picture

Status: Active » Fixed

This is nothing to do with Clean theme.

You need to edit the frontpage view.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.