Drupal: Get rid of that annoying colon at the end of poll questions

Here is a tip to get rid of that annoying colon at the end of poll questions in Drupal.

Edit block.tpl.php in your active theme directory.

Locate line:

  • <?php print $block->content; ?>

and change to:

  • <?php print preg_replace('/\?:/','?',$block->content); ?>

Happy theming.

Comments

Better

1. Copy the modules/poll/poll-vote.tpl.php file to the your theme directory. (It is /sites/all/themes/atck on your site)

Locate line:

<?php print $title; ?>:

and change to:

<?php print $title; ?>

pp
(Your filter older is not to good. Please see my comment source!)

Syndicate

Syndicate content